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

Extend cargo _path to allow +<toolchain> #321

Open
wcampbell0x2a opened this issue Oct 15, 2024 · 1 comment
Open

Extend cargo _path to allow +<toolchain> #321

wcampbell0x2a opened this issue Oct 15, 2024 · 1 comment

Comments

@wcampbell0x2a
Copy link

Could MetadataCommand::cargo_path be extended to add some sort of +<toolchain> syntax? I use guppy and need a nightly compiler when I invoke cargo metadata, but there isn't a way of easily setting $CARGO and making the user find the correct +nightly compiler path, let alone myself.

@sunshowers
Copy link
Member

Thanks for the report!

So one challenge here is that the + syntax only works if cargo points to the rustup shim for it. That is often, but not always, the case.

Could you run rustup which cargo --toolchain nightly and pass that in?

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

2 participants