Documentation issue: Label - What happens when label sections are blank? #14503
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Documentation
Documentation improvements that cannot be directly linked to other team labels
team-Rules-API
API for writing rules/aspects: providers, runfiles, actions, artifacts
type: documentation (cleanup)
Documentation URL: https://docs.bazel.build/versions/main/skylark/lib/Label.html
Would it be possible to add documentation around what happens with this API when portions of a label are empty?
Here are some examples I was having trouble with:
//:abc
, doespackage
return"."
or""
orNone
?//pkg
, does it automatically setname
to"pkg"
?//pkg:abc
, doesworkspace_name
automatically resolve to""
or"__main__"
or dynamically resolve to the workspace name specified inWORKSPACE
?//pkg:abc
, doesworkspace_root
get set to"."
orNone
or some other value?The text was updated successfully, but these errors were encountered: