@@ -8,7 +8,7 @@ load("@aspect_bazel_lib//lib:utils.bzl", "to_label")
8
8
def link_package_json_to_tarballs (name , src , pkg_deps , out ):
9
9
"""Substitute tar paths into a package.json file for the packages it depends on.
10
10
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.
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.
12
12
13
13
Args:
14
14
name: Name of the rule
@@ -41,7 +41,7 @@ def link_package_json_to_tarballs(name, src, pkg_deps, out):
41
41
# for the tar for this package as that would create a circular dependency.
42
42
pkg_label = to_label (pkg_dep )
43
43
if pkg_label .package != src_pkg :
44
- pkg_tar = "@%s//%s:npm_package_archive.tar.gz " % (pkg_label .workspace_name , pkg_label .package )
44
+ pkg_tar = "@%s//%s:npm_package_archive.tgz " % (pkg_label .workspace_name , pkg_label .package )
45
45
srcs .append (pkg_tar )
46
46
47
47
# 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):
53
53
name = "%s_%s_filter" % (name , i ),
54
54
srcs = srcs ,
55
55
cmd = """
56
- TAR=$$(dirname $$({abs_path_sandbox} || {abs_path_nosandbox}))/npm_package_archive.tar.gz
56
+ TAR=$$(dirname $$({abs_path_sandbox} || {abs_path_nosandbox}))/npm_package_archive.tgz
57
57
PKGNAME=$$(cat $(execpath {pkg_name}))
58
58
if [[ "$$TAR" != *bazel-out* ]]; then
59
59
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