mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
Fix Rust installation
There were a number of issues: 1. `rustc` wasn't actually installed since the `INSTALL_RUST_VERSION` argument wasn't set. 2. `rustup` wasn't running properly since the `CARGO_HOME` and `RUSTUP_HOME`weren't being exported and set by default. We now use the technique described in https://github.com/rust-lang/rustup/issues/1085 to create a wrapper and link all the binaries in /opt/rust/bin and link them to /usr/local/bin. 3. `rustc version` is not a valid command. `rustc --version` is valid.
This commit is contained in:
parent
a5ac3f8e7f
commit
9e04d5d21a
3 changed files with 19 additions and 6 deletions
|
|
@ -64,13 +64,13 @@ function print_golang_args() {
|
|||
function print_rust_args() {
|
||||
case "$1" in
|
||||
1.65.0)
|
||||
RUST_VERSION="1.65.0"
|
||||
INSTALL_RUST_VERSION="1.65.0"
|
||||
;;
|
||||
|
||||
*) fail "Unknown rust version $1" ;;
|
||||
esac
|
||||
|
||||
printf -- "--build-arg RUST_VERSION=%s " "$RUST_VERSION"
|
||||
printf -- "--build-arg INSTALL_RUST_VERSION=%s " "$INSTALL_RUST_VERSION"
|
||||
}
|
||||
|
||||
# If you add a new minor version here, be sure to check that the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue