conda-forge.github.io icon indicating copy to clipboard operation
conda-forge.github.io copied to clipboard

Document `cargo install --locked --no-track`

Open wolfv opened this issue 1 year ago • 3 comments

Where should the content be added?

In the knowledge base or even as a linter

What should be added?

We should (force) people to use cargo install --locked --no-track. The --no-track option prevents cargo from writing $PREFIX/.crates2.json and $PREFIX/.crates.toml files.

If that option is not used, all Rust packages clobber each other.

Additional information

No response

wolfv avatar May 23 '24 06:05 wolfv

We could probably make a linter out of this.

xhochy avatar May 23 '24 06:05 xhochy

Is there an env var cargo accepts for this? Maybe the rust compiler package could auto set it if used within conda-build?

jaimergp avatar Jul 23 '24 07:07 jaimergp

Is there an env var cargo accepts for this? Maybe the rust compiler package could auto set it if used within conda-build?

Doesn't appear to be https://doc.rust-lang.org/cargo/reference/environment-variables.html, though $CARGO_INSTALL_ROOT could be a useful one for us to auto set?

mbhall88 avatar Sep 19 '24 01:09 mbhall88

could it be added to conda-smithy? this solution worked great for me.

bjarthur avatar Dec 03 '24 22:12 bjarthur