Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use canonical labels for analysistest config_settings #2191

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

nickgooding
Copy link
Contributor

With bzlmod enabled, errors like the following would occur:

Error in analysis_test_transition: invalid transition output '@[unknown repo '' requested from @bazel_skylib~1.3.0]//:clippy_flags': no repo visible as @ from repository '@bazel_skylib~1.3.0'

To resolve this, use str(Label("...")) to get the canonical label to use as the key in config_settings.

Related issues: #2181, bazelbuild/bazel#19286

With bzlmod enabled, errors like the following would occur:
Error in analysis_test_transition: invalid transition output '@[unknown repo '' requested from @bazel_skylib~1.3.0]//:clippy_flags': no repo visible as @ from repository '@bazel_skylib~1.3.0'

To resolve this, use str(Label("...")) to get the canonical label to use
as the key in config_settings.

Related issues: bazelbuild#2181, bazelbuild/bazel#19286
@nickgooding nickgooding force-pushed the analysistest_canonical_labels branch from 29d5bab to e711790 Compare October 10, 2023 22:40
@nickgooding nickgooding force-pushed the analysistest_canonical_labels branch from e711790 to a9e7396 Compare October 10, 2023 22:47
Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@UebelAndre UebelAndre merged commit 35c92d0 into bazelbuild:main Oct 11, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants