This is a variant of #8711
Steps
- Make a sbt 2.x project.
cd /tmp
mkdir hello
cd hello
touch build.sbt
mkdir project
echo "sbt.version=2.0.0-RC8" > project/build.properties
$ $HOME/work/sbt/sbt --version -v
Problem
It runs sbtn instead of printing out the script version:
$ $HOME/work/sbt/sbt --version -v
....
[debug] running native client
# Executing command line:
/Users/xxx/.cache/sbt/boot/sbtn/1.12.1/sbtn
--sbt-script=/Users/xxx/work/sbt/sbt
--script-version
-v
[info] server was not detected. starting an instance
[error] failed to connect to server
Expectation
$ $HOME/work/sbt-modules/sbt/sbt --version -v
[sbt_options] declare -a sbt_options=([0]="-Xms2048M" [1]="-Xmx2048M" [2]="-Xss2M")
[process_args] java_version = '17'
sbt version in this project: 2.0.0-something
sbt runner version: _to_be_replaced
[info] sbt runner (sbt-the-shell-script) is a runner to run any declared version of sbt.
[info] Actual version of the sbt is declared using project/build.properties for each build.
Print out the sbt version.
This is a variant of #8711
Steps
cd /tmpmkdir hellocd hellotouch build.sbtmkdir projectecho "sbt.version=2.0.0-RC8" > project/build.properties$ $HOME/work/sbt/sbt --version -vProblem
It runs sbtn instead of printing out the script version:
Expectation
Print out the sbt version.