Skip to content

Commit a3aeca9

Browse files
committed
Update xargo.
1 parent 9687401 commit a3aeca9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

docker/xargo.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
set -ex
44

55
main() {
6-
local tag=v0.3.5
7-
local target=x86_64-unknown-linux-gnu
8-
96
local dependencies=(
107
ca-certificates
118
curl
@@ -20,8 +17,16 @@ main() {
2017
fi
2118
done
2219

23-
curl -LSfs http://japaric.github.io/trust/install.sh | \
24-
sh -s -- --git japaric/xargo --tag $tag --target $target --to /usr/bin && \
20+
export RUSTUP_HOME=/tmp/rustup
21+
export CARGO_HOME=/tmp/cargo
22+
23+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-init.sh
24+
sh rustup-init.sh -y --no-modify-path
25+
rm rustup-init.sh
26+
27+
PATH="${CARGO_HOME}/bin:${PATH}" cargo install xargo --root /usr
28+
29+
rm -r "${RUSTUP_HOME}" "${CARGO_HOME}"
2530

2631
apt-get purge --auto-remove -y ${purge_list[@]}
2732
rm $0

0 commit comments

Comments
 (0)