Skip to content

Stop using Label.workspace_name#4282

Merged
fmeum merged 1 commit intobazel-contrib:masterfrom
EdSchouten:eschouten/20250217-repo-name
Feb 24, 2025
Merged

Stop using Label.workspace_name#4282
fmeum merged 1 commit intobazel-contrib:masterfrom
EdSchouten:eschouten/20250217-repo-name

Conversation

@EdSchouten
Copy link
Copy Markdown
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
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