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 43f2660
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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 43f2660

Please sign in to comment.