Skip to content

Miss match between coverage tool attribute type between single_version_platform_override and python_repository#2570

Description

@ewianda

馃悶 bug report

Is this a regression?

No

Description

https://github.com/bazelbuild/rules_python/blob/50a9a2e59d98c56a26b1b9230609d16723037c46/python/private/python.bzl#L817-L821
https://github.com/bazelbuild/rules_python/blob/50a9a2e59d98c56a26b1b9230609d16723037c46/python/private/python_repository.bzl#L274

馃敩 Minimal Reproduction

python.single_version_platform_override(
    coverage_tool = "//benchsci/devtools/python:coverage_main",
    platform = "x86_64-unknown-linux-gnu",
    python_version = "3.11.6",
)

馃敟 Exception or Error

Computing main repo mapping:
ERROR: <builtin>: @@rules_python~//python/extensions:rules_python~~python~python_3_11_6_x86_64-unknown-linux-gnu: expected value of type 'string' for attribute 'coverage_tool' in 'python_repository' rule, but got Label("//benchsci/devtools/python:coverage_main") (Label)
ERROR: Traceback (most recent call last):
 File "/home/ewianda/.cache/bazel/_bazel_ewianda/da4b4cc49e0e621570c9e24d6f1eab95/external/rules_python~/python/private/python.bzl", line 232, column 75, in _python_impl
loaded_platforms[full_python_version] = python_register_toolchains(
File "/home/ewianda/.cache/bazel/_bazel_ewianda/da4b4cc49e0e621570c9e24d6f1eab95/external/rules_python~/python/private/python_register_toolchains.bzl", line 133, column 26, in python_register_toolchains
python_repository(
Error in repository_rule: failed to instantiate 'python_repository' from this module extension
ERROR: @rules_python//python/config_settings:bootstrap_impl :: Error loading option @rules_python//python/config_settings:bootstrap_impl: error evaluating module extension python in @@rules_python~//python/extensions:python.bzl    

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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