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

Document cargo install --locked --no-track #2191

Open
wolfv opened this issue May 23, 2024 · 4 comments
Open

Document cargo install --locked --no-track #2191

wolfv opened this issue May 23, 2024 · 4 comments

Comments

@wolfv
Copy link
Member

wolfv commented May 23, 2024

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

@xhochy
Copy link
Member

xhochy commented May 23, 2024

We could probably make a linter out of this.

@jaimergp
Copy link
Member

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

@mbhall88
Copy link

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?

@bjarthur
Copy link

bjarthur commented Dec 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants