Skip to content

Commit c042e57

Browse files
hamzaremmalWojciechMazur
authored andcommitted
Add --skip-cli-updates by default to the scala command
1 parent edc8cbc commit c042e57

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: dist/bin/scala

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ done
5959
# SCALA_CLI_CMD_BASH is an array, set by cli-common-platform
6060
eval "${SCALA_CLI_CMD_BASH[@]}" \
6161
"--prog-name scala" \
62+
"--skip-cli-updates" \
6263
"--cli-default-scala-version \"$SCALA_VERSION\"" \
6364
"-r \"$MVN_REPOSITORY\"" \
6465
"${scala_args[@]}"

Diff for: dist/bin/scala.bat

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ call :setScalaOpts
2121

2222
call "%_PROG_HOME%\bin\cli-common-platform.bat"
2323

24-
@rem SCALA_CLI_CMD_WIN is an array, set in cli-common-platform.bat
25-
call %SCALA_CLI_CMD_WIN% "--prog-name" "scala" "--cli-default-scala-version" "%_SCALA_VERSION%" "-r" "%MVN_REPOSITORY%" %*
24+
@rem SCALA_CLI_CMD_WIN is an array, set in cli-common-platform.bat.
25+
@rem WE NEED TO PASS '--skip-cli-updates' for JVM launchers but we actually don't need it for native launchers
26+
call %SCALA_CLI_CMD_WIN% "--prog-name" "scala" "--skip-cli-updates" "--cli-default-scala-version" "%_SCALA_VERSION%" "-r" "%MVN_REPOSITORY%" %*
2627

2728
if not %ERRORLEVEL%==0 ( set _EXITCODE=1& goto end )
2829

0 commit comments

Comments
 (0)