Skip to content
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

Workaround for forbidden artifact/crate names #58

Open
LukasKalbertodt opened this issue Aug 12, 2018 · 0 comments
Open

Workaround for forbidden artifact/crate names #58

LukasKalbertodt opened this issue Aug 12, 2018 · 0 comments

Comments

@LukasKalbertodt
Copy link

Hi there!

Unfortunately, Cargo forbids a few names for packages or artifacts. See:

I noticed this because I wanted to have a build script build.rs. This leads to:

error: failed to parse manifest at `/home/lukas/.cargo/script-cache/file-build-5b0f8f572ede70cb/Cargo.toml`

Caused by:
  the binary target name `build` is forbidden
internal error: cargo failed with status 101

I am not sure why these names are forbidden, but it would be nice if they'd work with cargo-script. For example, one could check if the name of the script is on the blacklist and then just add -cargo-script or something. When executing a script, one usually doesn't care about the actual package and artifact name.

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

No branches or pull requests

1 participant