-
Notifications
You must be signed in to change notification settings - Fork 128
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
CARGO
env variable does not get set when running commands
#1059
Comments
its not cargo make. if i remember this was mentioned before and it was due to cargo behavior itself. |
Do you have a workaround for this? Also the reason I think this is cargo make is because when running |
Ok after lots of debugging, this is what i came up with:
This is the flow:
I think what needs to happen here is that because of this recursive I'm going to test these changes locally and put up a PR if it works |
Describe The Bug
The README describes
Although this says it doesn't define it for commands, I think this should so that the behavior matches with running via
rustup
orcargo +toolchain
.To Reproduce
build.rs
:Makefile.toml
:These commands panic with stable toolchain path:
cargo build
rustup run stable cargo build
cargo make build
cargo make nightly-build
These commands panic with nightly toolchain path:
cargo +nightly build
rustup run nightly cargo build
The issue here is that
cargo make nightly-build
should print the nightly toolchain path. Something in cargo-make is preventing it from doing that.The text was updated successfully, but these errors were encountered: