@@ -8,7 +8,7 @@ load("@aspect_bazel_lib//lib:utils.bzl", "to_label")
88def link_package_json_to_tarballs (name , src , pkg_deps , out ):
99 """Substitute tar paths into a package.json file for the packages it depends on.
1010
11- src and pkg_deps must be labels in the bazel-out tree for the derived path to the npm_package_archive.tgz to be correct.
11+ src and pkg_deps must be labels in the bazel-out tree for the derived path to the npm_package_archive.tar.gz to be correct.
1212
1313 Args:
1414 name: Name of the rule
@@ -41,7 +41,7 @@ def link_package_json_to_tarballs(name, src, pkg_deps, out):
4141 # for the tar for this package as that would create a circular dependency.
4242 pkg_label = to_label (pkg_dep )
4343 if pkg_label .package != src_pkg :
44- pkg_tar = "@%s//%s:npm_package_archive.tgz " % (pkg_label .workspace_name , pkg_label .package )
44+ pkg_tar = "@%s//%s:npm_package_archive.tar.gz " % (pkg_label .workspace_name , pkg_label .package )
4545 srcs .append (pkg_tar )
4646
4747 # Deriving the absolute path to the tar in the execroot requries different
@@ -53,7 +53,7 @@ def link_package_json_to_tarballs(name, src, pkg_deps, out):
5353 name = "%s_%s_filter" % (name , i ),
5454 srcs = srcs ,
5555 cmd = """
56- TAR=$$(dirname $$({abs_path_sandbox} || {abs_path_nosandbox}))/npm_package_archive.tgz
56+ TAR=$$(dirname $$({abs_path_sandbox} || {abs_path_nosandbox}))/npm_package_archive.tar.gz
5757 PKGNAME=$$(cat $(execpath {pkg_name}))
5858 if [[ "$$TAR" != *bazel-out* ]]; then
5959 echo "ERROR: package.json passed to substitute_tar_deps must be in the output tree. You can use copy_to_bin to copy a source file to the output tree."
0 commit comments