Skip to content

Commit 47f312a

Browse files
committed
chore: use new tar.bzl location
1 parent 72ac45b commit 47f312a

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ bazel_dep(name = "bazel_skylib", version = "1.5.0")
1414
bazel_dep(name = "platforms", version = "0.0.8")
1515
bazel_dep(name = "rules_oci", version = "1.7.4")
1616
bazel_dep(name = "rules_python", version = "0.29.0")
17+
bazel_dep(name = "tar.bzl", version = "0.3.0")
1718

1819
# Development dependencies which are not exposed to users
1920
bazel_dep(name = "aspect_rules_py", version = "0.7.3", dev_dependency = True)

aws/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ bzl_library(
4848
"//aws/private:s3_sync",
4949
"@rules_oci//oci:defs",
5050
"@rules_python//python:defs_bzl",
51+
"@tar.bzl//:tar",
5152
],
5253
)
5354

aws/private/py_lambda.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"Rule to produce tar files with py_binary deps and app"
22

3-
load("@aspect_bazel_lib//lib:tar.bzl", "tar")
3+
load("@tar.bzl", "tar")
44

55
# Write these two separate layers, so application changes are a small delta when pushing to a registry
66
_LAYERS = ["app", "deps"]

aws/repositories.bzl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ def rules_aws_dependencies():
3636
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.5.3/bazel-lib-v2.5.3.tar.gz",
3737
)
3838

39+
http_archive(
40+
name = "tar.bzl",
41+
sha256 = "5a50cca492e849d5074ae0a9025f753e1ee81c20c7a45882ccf99ed8d5f56939",
42+
strip_prefix = "tar.bzl-0.3.0",
43+
url = "https://github.com/bazel-contrib/tar.bzl/releases/download/v0.3.0/tar.bzl-v0.3.0.tar.gz",
44+
)
45+
3946
########
4047
# Remaining content of the file is only used to support toolchains.
4148
########
@@ -126,7 +133,7 @@ alias(name = "aws", actual = "//installed:{}/aws", visibility = ["//visibility:p
126133

127134
rctx.file("installed/BUILD.bazel", """\
128135
# Generated by aws/repositories.bzl
129-
load("@aspect_bazel_lib//lib:tar.bzl", "mtree_spec", "tar")
136+
load("@tar.bzl", "mtree_spec", "tar")
130137
131138
package(default_visibility=["//visibility:public"])
132139

0 commit comments

Comments
 (0)