File tree 2 files changed +8
-4
lines changed 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 7
7
include :
8
8
- rust : 1.8.0
9
9
before_script :
10
- # libc 0.2.34 started using #[deprecated]
10
+ # rand 0.3.22 started depending on rand 0.4, which requires rustc 1.15
11
+ # manually hacking the lockfile due to the limitations of cargo#2773
11
12
- cargo generate-lockfile
12
- - cargo update --package libc --precise 0.2.33
13
+ - sed -i -e 's/"rand 0.[34].[0-9]\+/"rand 0.3.20/' Cargo.lock
14
+ - sed -i -e '/^name = "rand"/,/^$/s/version = "0.3.[0-9]\+"/version = "0.3.20"/' Cargo.lock
13
15
sudo : false
14
16
script :
15
17
- cargo build --verbose
Original file line number Diff line number Diff line change @@ -8,9 +8,11 @@ export TRAVIS_RUST_VERSION
8
8
for TRAVIS_RUST_VERSION in 1.8.0 stable beta nightly; do
9
9
run=" rustup run $TRAVIS_RUST_VERSION "
10
10
if [ " $TRAVIS_RUST_VERSION " = 1.8.0 ]; then
11
- # libc 0.2.34 started using #[deprecated]
11
+ # rand 0.3.22 started depending on rand 0.4, which requires rustc 1.15
12
+ # manually hacking the lockfile due to the limitations of cargo#2773
12
13
$run cargo generate-lockfile
13
- $run cargo update --package libc --precise 0.2.33 || :
14
+ $run sed -i -e ' s/"rand 0.[34].[0-9]\+/"rand 0.3.20/' Cargo.lock
15
+ $run sed -i -e ' /^name = "rand"/,/^$/s/version = "0.3.[0-9]\+"/version = "0.3.20"/' Cargo.lock
14
16
fi
15
17
$run cargo build --verbose
16
18
$run $PWD /ci/test_full.sh
You can’t perform that action at this time.
0 commit comments