Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
Ensure we have a rustfmt available.
Browse files Browse the repository at this point in the history
Using the old "install nothing, then install something" trick to enable
rollback.
  • Loading branch information
vext01 committed Jul 15, 2020
1 parent ecc6ef6 commit 5251ecf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .buildbot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ set -e
export CARGO_HOME="`pwd`/.cargo"
export RUSTUP_HOME="`pwd`/.rustup"

# Install no toolchain initially to ensure toolchain rollback.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
sh rustup.sh --default-host x86_64-unknown-linux-gnu --default-toolchain nightly -y --no-modify-path

sh rustup.sh --default-host x86_64-unknown-linux-gnu --default-toolchain none -y --no-modify-path
export PATH=`pwd`/.cargo/bin/:$PATH
rustup install nightly

cargo fmt --all -- --check

Expand Down

0 comments on commit 5251ecf

Please sign in to comment.