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

xtask: Fix channel of cargo operations #464

Closed

Conversation

nicholasbishop
Copy link
Member

It seems that some recent change (in cargo? or maybe rustc or rustup)
broke the way we run cargo from xtask. The channel arg (e.g. "+nightly")
is getting ignored due to the RUSTC and RUSTDOC env vars, which contain
full paths to a particular channel's binaries.

Fix by unsetting those variables in the child cargo's env.

@nicholasbishop nicholasbishop force-pushed the bishop-fix-xtask branch 2 times, most recently from 50a7d90 to a679279 Compare July 12, 2022 05:24
It seems that some recent change (in cargo? or maybe rustc or rustup)
broke the way we run cargo from xtask. The channel arg (e.g. "+nightly")
is getting ignored due to the RUSTC env var and other similar vars,
which contain full paths to a particular channel's binaries.

Fix by unsetting those variables in the child cargo's env.
@nicholasbishop
Copy link
Member Author

Looks like others are seeing similar problems: rust-lang/rustup#3029

Unsetting RUSTC and RUSTDOC fixed everything except the Windows build, not sure why that one is different.

@nicholasbishop
Copy link
Member Author

Closing in favor of #466

@nicholasbishop nicholasbishop deleted the bishop-fix-xtask branch July 12, 2022 15:36
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

Successfully merging this pull request may close these issues.

1 participant