Skip to content

Expose "human usable" workspace names for labels #20486

@shs96c

Description

@shs96c

Description of the feature request:

In rules_jvm_external we stamp jars so that buildifier can give accurate instructions. To do this, we need to know the workspace name that a human will use, rather than the canonical workspace name.

@fmeum has suggested opening up Label#getDisplayForm to Starlark to enable this.

Which category does this issue belong to?

Core, Documentation, External Dependency

What underlying problem are you trying to solve with this feature?

I need to be able to supply the workspace name that a user will use in dialogues and embedded information in artifacts.

Which operating system are you running Bazel on?

macOS

What is the output of bazel info release?

release 7.0.0rc7

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

This conversation on Slack

Any other information, logs, or outputs that you want to share?

No response

Metadata

Metadata

Assignees

Labels

P1I'll work on this now. (Assignee required)team-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.type: feature request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions