Files
tubestation/taskcluster/docker/rust-build/fetch_cargo.sh
Ralph Giles bcdeb05d35 Bug 1351031 - Update rust-build container. r=mshal
Update rust-build docker image source to v0.4.3. This includes
some recent to how verification and taskcluster work to maintain
working scripts, and some changes for the newer cargo-building-
cargo build system, which aren't sufficient for bootstrapping.

MozReview-Commit-ID: 4IdbKVvco8m
2017-03-27 14:02:44 -07:00

22 lines
485 B
Bash

#!/bin/bash -vex
set -x -e
# Inputs, with defaults
: REPOSITORY ${REPOSITORY:=https://github.com/rust-lang/cargo}
: BRANCH ${BRANCH:=0.14.0}
: WORKSPACE ${WORKSPACE:=/home/worker}
set -v
# Check out rust sources
SRCDIR=${WORKSPACE}/cargo
git clone --recursive $REPOSITORY -b $BRANCH ${SRCDIR}
# Report version
VERSION=$(git -C ${SRCDIR} describe --tags --dirty)
COMMIT=$(git -C ${SRCDIR} rev-parse HEAD)
echo "cargo ${VERSION} (commit ${COMMIT})" | tee cargo-version