Skip to content

Commit 9f3c871

Browse files
committed
Allow building when Python lib cannot be chowned
When building Gerrit on MacOS and bazel mods, the build may fail with: "Error in fail: Failed to make interpreter installation read-only. 'chmod' error msg" The error happens when trying to perform a chmod of the Python lib, which the current user may not have permission to change. Relaxing the ignore_root_user_error flag solves the problem. The associated Bazel issue at [1] and has later fixed with [2]. [1] bazel-contrib/rules_python#2016 [2] bazel-contrib/rules_python#3421 Release-Notes: skip Change-Id: I326025b80a644a2a485ee936b4cfe1429d9d81f2
1 parent 76bbe75 commit 9f3c871

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ bazel_dep(name = "rules_shell", version = "0.6.1")
88
bazel_dep(name = "rules_java", version = "7.6.1")
99
bazel_dep(name = "toolchains_protoc", version = "0.3.0")
1010
bazel_dep(name = "rules_proto", version = "6.0.0")
11+
bazel_dep(name = "rules_python", version = "1.8.0-rc1")
1112

1213
bazel_dep(name = "jgit")
1314
local_path_override(

MODULE.bazel.lock

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

0 commit comments

Comments
 (0)