Skip to content

sbt --script-version doesn't work on sbt 2.x project directories #8711

@eed3si9n

Description

@eed3si9n

Steps

  1. Make a sbt 2.x project.
    1. cd /tmp
    2. mkdir hello
    3. cd hello
    4. touch build.sbt
    5. mkdir project
    6. echo "sbt.version=2.0.0-RC8" > project/build.properties
  2. $ $HOME/work/sbt/sbt --script-version -v

Problem

It runs sbtn instead of printing out the script version:

$ $HOME/work/sbt/sbt --script-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/sbt --script-version -v
....
[process_args] java_version = '8'
_to_be_replaced

Print out the script version. If you used the one in sbt/sbt it should say _to_be_replaced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugarea/runner-scriptissues around sbt-the-bash-script, or bat script

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions