Are there any restrictions to what characters can ...
# development
p
Are there any restrictions to what characters can be used in a generated target's name? I assume
:@#
are out since they are special characters in the address syntax. But could I use
/
or
.
? And are the generated target names case sensitive? (Context: I'm thinking about turning
python_distribution
into a target generator to resolve https://github.com/pantsbuild/pants/issues/15481 )
Looks like
pex_binaries
uses this for the generated name:
entry_point_spec.replace(":", "-")
Copy code
pub static ref BANNED_CHARS_IN_GENERATED_NAME: HashSet<char> =
    [':', '#', '!', '@', '?', '='].into();
👏 1
p
Thank you!
🫡 1