Skip to content

Stop using Label.workspace_name #4282

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

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

EdSchouten
Copy link
Contributor

What type of PR is this?

Other

What does this PR do? Why is it needed?

According to the Bazel documentation, it is deprecated. Label.repo_name should be used instead.

https://bazel.build/rules/lib/builtins/Label#workspace_name

Which issues(s) does this PR fix?

I am working on an analysis tool for Bazel BUILD/*.bzl files. It is currently unable to process Label.workspace_name. Adding support for it is trivial, however I thought it would be a good idea to fix up existing rules instead.

Other notes for review

According to the Bazel documentation, it is deprecated. Label.repo_name
should be used instead.

https://bazel.build/rules/lib/builtins/Label#workspace_name
@fmeum fmeum force-pushed the eschouten/20250217-repo-name branch from 38fe4be to af60cb3 Compare February 24, 2025 10:08
@fmeum fmeum enabled auto-merge (squash) February 24, 2025 10:08
@fmeum fmeum merged commit 10b45b2 into bazel-contrib:master Feb 24, 2025
1 check 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