Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 63f3d7f

Browse files
committed
rustup: Default to the beta channel
Switches rustup to using the beta channel by default
1 parent c054ae2 commit 63f3d7f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/etc/rustup.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ VAL_OPTIONS=""
288288
flag uninstall "only uninstall from the installation prefix"
289289
valopt prefix "" "set installation prefix"
290290
valopt date "" "use the YYYY-MM-DD nightly instead of the current nightly"
291-
valopt channel "nightly" "use the selected release channel [nightly]"
291+
valopt channel "beta" "use the selected release channel [beta]"
292292
flag save "save the downloaded nightlies to ~/.rustup"
293293

294294
if [ $HELP -eq 1 ]
@@ -460,8 +460,11 @@ case "$CFG_CHANNEL" in
460460

461461
RUST_PACKAGE_NAME=rust-nightly
462462
;;
463+
beta)
464+
RUST_PACKAGE_NAME=rust-1.0.0-beta
465+
;;
463466
*)
464-
err "Currently nightly is the only supported release channel"
467+
err "Currently 'beta' and 'nightly' are the only supported channels"
465468
esac
466469

467470
RUST_PACKAGE_NAME_AND_TRIPLE="${RUST_PACKAGE_NAME}-${HOST_TRIPLE}"

0 commit comments

Comments
 (0)