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

[internal] Require the rust-std component in rustup. #11422

Merged

Conversation

stuhood
Copy link
Member

@stuhood stuhood commented Jan 6, 2021

Followup to #11420: we additionally need the stdlib.

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@stuhood
Copy link
Member Author

stuhood commented Jan 6, 2021

I don't know how this was missed in #11420: the relevant failing shard did run. Will clear caches for these runs.

@stuhood
Copy link
Member Author

stuhood commented Jan 6, 2021

The failure in #11415 is (now): https://travis-ci.com/github/pantsbuild/pants/jobs/469295756:

...
error[E0463]: can't find crate for `std`
...

@stuhood stuhood merged commit 461a085 into pantsbuild:master Jan 6, 2021
@stuhood stuhood deleted the stuhood/require-rust-std-rustup-component branch January 6, 2021 22:37
@stuhood stuhood added this to the 2.2.x milestone Jan 6, 2021
stuhood added a commit to stuhood/pants that referenced this pull request Jan 6, 2021
Followup to pantsbuild#11420: we additionally need the stdlib.
stuhood added a commit that referenced this pull request Jan 7, 2021
…11420). (#11423)

### Problem

The default components installed for a `rustup` toolchain are not guaranteed to include `cargo`, `clippy`, etc.

### Solution

Expand our `rust-toolchain` file to explicitly list the components that we need. We do not pin `rustup` for now, as it generally changes backwards-compatibly. We can revisit that in the future if it continues to change in breaking ways.

[ci skip-build-wheels]
@stuhood stuhood mentioned this pull request Jan 11, 2021
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.

2 participants