Skip to content

bazel_version is not used in this print statement #836

@prestonvanloon

Description

@prestonvanloon

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,
str(bazel_compat_configs),
env,
config_repos,
create_cc_configs,
))

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions