Skip to content

Commit 8d73959

Browse files
authored
Install active toolchain by default if rust-version is not passed (#92)
1 parent 25f8f6f commit 8d73959

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ if [ -n "$1" ]
77
then
88
rustup set profile minimal
99
rustup default "$1"
10+
else
11+
# Ensure active toolchain is installed if explicit rust-version is not passed.
12+
# Starting with v1.28, rustup is not going to install active toolchain by default,
13+
# and this is needed to install the active toolchain if it's not installed.
14+
# See https://blog.rust-lang.org/2025/03/02/Rustup-1.28.0.html#whats-new-in-rustup-1280
15+
rustup show active-toolchain || rustup toolchain install
1016
fi
1117

1218
if [ -n "$2" ]

0 commit comments

Comments
 (0)