Skip to content

Commit d91401c

Browse files
authored
fix: ensure the stage1 bootstrap is executable (#3258)
Bazel tends to make files executable, even if ctx.actions.write() or ctx.actions.expand_template() is called without is_executable = True. However, in an analysis tool of mine that is a bit more pedantic than Bazel this leads to the issue that py_binary() targets can't be executed due to them not having a +x bit. Considering that the stage2 bootstrap is marked executable, let's mark is_executable for consistency.
1 parent 37cb91a commit d91401c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/private/py_executable.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,7 @@ def _create_stage1_bootstrap(
894894
template = template,
895895
output = output,
896896
substitutions = subs,
897+
is_executable = True,
897898
)
898899

899900
def _create_windows_exe_launcher(

0 commit comments

Comments
 (0)