Skip to content

Commit 3efde5a

Browse files
fmeumcopybara-github
authored andcommitted
Make overlaid files executable in http_archive
This makes it possible to use registry overlays to add shell scripts. Context: https://bazelbuild.slack.com/archives/C014RARENH0/p1767975320777969 Closes #28202. PiperOrigin-RevId: 855699722 Change-Id: I65891a0cb6d7e99d70ab33c8b38f1c7da943fc09
1 parent 7c2c3b1 commit 3efde5a

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/test/tools/bzlmod/MODULE.bazel.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/build_defs/repo/utils.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def download_remote_files(ctx, auth = None):
107107
auth = get_auth(ctx, remote_file_urls) if auth == None else auth,
108108
integrity = ctx.attr.remote_file_integrity.get(path, ""),
109109
block = False,
110+
# Overlaid files may be shell scripts.
111+
executable = True,
110112
)
111113
for path, remote_file_urls in ctx.attr.remote_file_urls.items()
112114
}

0 commit comments

Comments
 (0)