This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -15,25 +15,25 @@ ARG CARGO_HOME="${prefix}/opt/cargo" \
15
15
RUN <<EOF
16
16
curl -svLko /dev/null https://sh.rustup.rs
17
17
curl https://sh.rustup.rs \
18
- --proto '=https' \
19
- --tlsv1.2 \
20
- --silent \
21
- --show-error \
22
- --fail | \
23
- env CARGO_HOME="${CARGO_HOME}" RUSTUP_HOME="${RUSTUP_HOME}" bash -s -- \
24
- --default-toolchain "${version}" \
25
- --no-modify-path \
26
- -y
18
+ --proto '=https' \
19
+ --tlsv1.2 \
20
+ --silent \
21
+ --show-error \
22
+ --fail \
23
+ | env CARGO_HOME="${CARGO_HOME}" RUSTUP_HOME="${RUSTUP_HOME}" bash -s -- \
24
+ --default-toolchain "${version}" \
25
+ --no-modify-path \
26
+ -y
27
27
EOF
28
28
RUN <<EOF
29
29
"${prefix}/opt/cargo/bin/rustup" completions bash rustup >"${prefix}${target}/share/bash-completion/completions/rustup"
30
30
"${prefix}/opt/cargo/bin/rustup" completions fish rustup >"${prefix}${target}/share/fish/vendor_completions.d/rustup.fish"
31
31
"${prefix}/opt/cargo/bin/rustup" completions zsh rustup >"${prefix}${target}/share/zsh/vendor-completions/_rustup"
32
32
cp \
33
- "${prefix}/opt/rustup/toolchains/${version}-x86_64 -unknown-linux-gnu/etc/bash_completion.d/cargo" \
33
+ "${prefix}/opt/rustup/toolchains/${version}-${arch} -unknown-linux-gnu/etc/bash_completion.d/cargo" \
34
34
"${prefix}${target}/share/bash-completion/completions/"
35
35
cp \
36
- "${prefix}/opt/rustup/toolchains/${version}-x86_64 -unknown-linux-gnu/share/zsh/site-functions/_cargo" \
36
+ "${prefix}/opt/rustup/toolchains/${version}-${arch} -unknown-linux-gnu/share/zsh/site-functions/_cargo" \
37
37
"${prefix}${target}/share/zsh/vendor-completions/"
38
38
EOF
39
39
RUN <<EOF
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: rust
2
2
version : " 1.67.1"
3
3
binary : rustc
4
4
check : ${binary} --version | cut -d' ' -f2
5
+ platforms :
6
+ - linux/amd64
7
+ - linux/arm64
5
8
tags :
6
9
- type/cli
7
10
- category/development
You can’t perform that action at this time.
0 commit comments