-
Notifications
You must be signed in to change notification settings - Fork 1k
sbt --version doesn't work on sbt 2.x project directories #8717
Copy link
Copy link
Closed
Labels
Bugarea/runner-scriptissues around sbt-the-bash-script, or bat scriptissues around sbt-the-bash-script, or bat script
Description
This is a variant of #8711
Steps
- Make a sbt 2.x project.
cd /tmpmkdir hellocd hellotouch build.sbtmkdir projectecho "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 serverExpectation
$ $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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bugarea/runner-scriptissues around sbt-the-bash-script, or bat scriptissues around sbt-the-bash-script, or bat script