Skip to content

Commit

Permalink
chore: buildifier
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed May 1, 2024
1 parent 020185e commit 971a83c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ module(

# Lower-bound dependency versions.
# Do not change unless the rules no longer work with the current version.
bazel_dep(name = "aspect_bazel_lib", version = "2.5.3")
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "platforms", version = "0.0.8")
bazel_dep(name = "rules_oci", version = "1.7.4")
bazel_dep(name = "rules_python", version = "0.29.0")

# Development dependencies which are not exposed to users
bazel_dep(name = "aspect_bazel_lib", version = "2.5.3", dev_dependency = True)
bazel_dep(name = "aspect_rules_py", version = "0.7.1", dev_dependency = True)
bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True)
bazel_dep(name = "container_structure_test", version = "1.16.0", dev_dependency = True)
Expand Down
2 changes: 1 addition & 1 deletion aws/private/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ bzl_library(
bzl_library(
name = "py_lambda",
srcs = [
"@aspect_bazel_lib//lib:tar",
"py_lambda.bzl",
"@aspect_bazel_lib//lib:tar",
],
visibility = ["//aws:__subpackages__"],
)
2 changes: 2 additions & 0 deletions aws/private/py_lambda.bzl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"Rule to produce tar files with py_binary deps and app"

load("@aspect_bazel_lib//lib:tar.bzl", "tar")

# Write these two separate layers, so application changes are a small delta when pushing to a registry
Expand Down Expand Up @@ -30,6 +31,7 @@ def _mtree_line(file, type, content = None, uid = "0", gid = "0", time = "167256

def _py_lambda_tar_impl(ctx):
deps = ctx.attr.target[DefaultInfo].default_runfiles.files

# NB: this creates one of the parent directories, but others are implicit; tar will create them on extract
mtree = [_mtree_line(ctx.attr.prefix, type = "dir")]

Expand Down

0 comments on commit 971a83c

Please sign in to comment.