Skip to content

Commit

Permalink
chore: code review comment - default mode 0644 on files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed May 2, 2024
1 parent b75276f commit 837b9b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aws/private/py_lambda.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def _short_path(file_):
return short_path

# Copied from aspect-bazel-lib/lib/private/tar.bzl
def _mtree_line(file, type, content = None, uid = "0", gid = "0", time = "1672560000", mode = "0755"):
def _mtree_line(file, type, content = None, uid = "0", gid = "0", time = "1672560000", mode = "0644"):
spec = [
file,
"uid=" + uid,
Expand All @@ -32,8 +32,8 @@ 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")]
# NB: this creates one of the parent directories, but others are implicit
mtree = [_mtree_line(ctx.attr.prefix, type = "dir", mode = "0755")]

for dep in deps.to_list():
short_path = _short_path(dep)
Expand Down

0 comments on commit 837b9b8

Please sign in to comment.