bazelbuild / bazelbuild/bazel-toolchains

bazel_version is not used in this print statement

Open Beginner friendly
#836 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
202
Forks
100
PR merge metrics
No merged PRs in 30d

Description

https://github.com/bazelbuild/bazel-toolchains/blob/f10beec63426522c1b88653547963bba079311b8/rules/rbe_repo/checked_in.bzl#L199-L210

I encountered this error and it wasn't very helpful.
```
ERROR: /home/preston/.cache/bazel/_bazel_preston/6e220e5720b8243fd605645eb29a29ba/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:199:15: Traceback (most recent call last):
File "/home/preston/git/prysm/WORKSPACE", line 33
rbe_autoconfig(<7 more arguments>)
File "/home/preston/.cache/bazel/_bazel_preston/6e220e5720b8243fd605645eb29a29ba/external/bazel_toolchains/rules/rbe_repo.bzl", line 1045, in rbe_autoconfig
validateUseOfCheckedInConfigs(<16 more arguments>)
File "/home/preston/.cache/bazel/_bazel_preston/6e220e5720b8243fd605645eb29a29ba/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl", line 199, in validateUseOfCheckedInConfigs
print(<1 more arguments>)
File "/home/preston/.cache/bazel/_bazel_preston/6e220e5720b8243fd605645eb29a29ba/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl", line 199, in print
"%s not using checked in configs; '%s' was picked/selected as a candidate matching config but it does not match the 'env = %s', 'config_repos = %s', and/or 'create_cc_configs = %s' passed as attrs" % (name, bazel_version, <4 more arguments>)
not all arguments converted during string formatting
```

Contributor guide

Open the contributing guide

Research direction

Start with rules/rbe_repo/checked_in.bzl lines 199-210 and reproduce the reported validation error if possible. Inspect the print statement's format string and arguments; done means the checked-in-config validation reports the mismatch without raising a string-formatting traceback.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.