Skip to content

Commit

Permalink
Include ignore_root_user_error in repository_rule keys (bazelbuild#835)
Browse files Browse the repository at this point in the history
Otherwise you can see this warning:

```
DEBUG: Rule 'python3_9_aarch64-apple-darwin' indicated that a canonical reproducible form can be obtained by dropping arguments ["ignore_root_user_error"]
DEBUG: Repository python3_9_aarch64-apple-darwin instantiated at:
  /Users/ksmiley/dev/lyft/ios4/WORKSPACE:113:27: in <toplevel>
  /private/var/tmp/_bazel_ksmiley/c921e5b09fe02de914188528345349ce/external/rules_python/python/repositories.bzl:366:26: in python_register_toolchains
Repository rule python_repository defined at:
  /private/var/tmp/_bazel_ksmiley/c921e5b09fe02de914188528345349ce/external/rules_python/python/repositories.bzl:269:36: in <toplevel>
```

Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
  • Loading branch information
2 people authored and ianpegg-bc committed May 12, 2023
1 parent 0efd4b8 commit 23724db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ py_runtime_pair(
return {
"distutils": rctx.attr.distutils,
"distutils_content": rctx.attr.distutils_content,
"ignore_root_user_error": rctx.attr.ignore_root_user_error,
"name": rctx.attr.name,
"platform": platform,
"python_version": python_version,
Expand Down

0 comments on commit 23724db

Please sign in to comment.