Migrate pkg_tar from internal copy to @rules_pkg: Bazel packaging and
distribution.
This is one of several changes to complete this migration.
- Rules used to package and distribute Bazel. (This CL)
- third_party/...
- Rules which interact with other built-in rules.
tools/android/runtime_deps
src/main/cpp/util
- src/test/shell/bazel/bazel_embedded_skylark_test.sh
- Repository rule testing
src/test/java/com/google/devtools/build/lib/blackbox/tests/workspace/...
Defer until the incompatible flag flip.
RELNOTES: pkg_deb, pkg_rpm & pkg_tar deprecation plan announced in the documentation.
PiperOrigin-RevId: 259615722
diff --git a/distdir.bzl b/distdir.bzl
index fb237d7..a4d9265 100644
--- a/distdir.bzl
+++ b/distdir.bzl
@@ -14,7 +14,7 @@
"""Defines a repository rule that generates an archive consisting of the specified files to fetch"""
_BUILD = """
-load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
+load("@rules_pkg//:pkg.bzl", "pkg_tar")
pkg_tar(
name="archives",