macOS + Rust beta build failures


#1

In the last ~24 hours, I began to experience build failures with the combination macOS + Rust beta:

$ curl -sSf https://build.travis-ci.org/files/rustup-init.sh | sh -s -- --default-toolchain=$TRAVIS_RUST_VERSION -y
info: downloading installer
info: syncing channel updates for 'beta-x86_64-apple-darwin'
info: latest update on 2018-11-09, rust version 1.31.0-beta.5 (bf00632e3 2018-11-08)
info: default toolchain set to 'beta'
  beta unchanged - (toolchain not installed)
Rust is installed now. Great!
To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH 
environment variable. Next time you log in this will be done automatically.
To configure your current shell run source $HOME/.cargo/env
$ export PATH=${TRAVIS_HOME}/.cargo/bin:$PATH
$ rustc --version
error: toolchain 'beta' is not installed
info: caused by: not a directory: '/Users/travis/.rustup/toolchains/beta-x86_64-apple-darwin'
$ rustup --version
rustup 1.14.0 (1e51b07cc 2018-10-04)
$ cargo --version
error: toolchain 'beta' is not installed
info: caused by: not a directory: '/Users/travis/.rustup/toolchains/beta-x86_64-apple-darwin'
0.03s$ cargo build --verbose
error: toolchain 'beta' is not installed
info: caused by: not a directory: '/Users/travis/.rustup/toolchains/beta-x86_64-apple-darwin'
0.03s$ cargo test --verbose
error: toolchain 'beta' is not installed
info: caused by: not a directory: '/Users/travis/.rustup/toolchains/beta-x86_64-apple-darwin'
The command "cargo test --verbose" exited with 1.
Done. Your build exited with 1.

See https://travis-ci.org/chrissimpkins/commandlines-rust/jobs/452893769 for a job where this occurred. Thanks in advance for your help with this!


#2

Sounds like an error on the Rust tool chain. If I run the installer on my machine locally and invoke $HOME/.cargo/bin/rustc, similar error message is shown.


#3

You are correct. Sorry to waste your time. This was just reported in the last several hours on the Rust repo here https://github.com/rust-lang/rust/issues/55817 and there is an open PR with a fix in https://github.com/rust-lang/rust/pull/55823.

Thanks for your help!


#4

https://github.com/travis-ci/travis-build/pull/1584 addresses the problem from our side: if the Rust tools installation is successful but the tools are faulty, we fail early before the execution gets to user-defined phases.