-
Notifications
You must be signed in to change notification settings - Fork 950
Closed
Labels
Bugarea/runner-scriptissues around sbt-the-bash-script, or bat scriptissues around sbt-the-bash-script, or bat scripthelp wanted
Milestone
Description
Found this issue while working on sbt/docker-sbt#313
steps
sbt --script-version
or
sbt --version
problem
[warn] Neither build.sbt nor a 'project' directory in the current directory: /root
c) continue
q) quit
expectation
I would expect this to not request input, or at least have a flag to continue
notes
The bash version does not ignore the --script-version command
[[ -f ./build.sbt || -d ./project || -n "$sbt_create" || -n "$sbt_new" ]] || { | |
echo "[warn] Neither build.sbt nor a 'project' directory in the current directory: $(pwd)" |
The bat version does ignore the version
sbt/launcher-package/src/universal/bin/sbt.bat
Lines 529 to 532 in f61100f
if not defined sbt_args_sbt_create if not defined sbt_args_print_version if not defined sbt_args_print_sbt_version if not defined sbt_args_print_sbt_script_version if not defined shutdownall if not exist build.sbt ( | |
if not exist project\ ( | |
if not defined sbt_new ( | |
echo [warn] Neither build.sbt nor a 'project' directory in the current directory: "%CD%" |
Strangely I can't reproduce this on macOS without calling bash directly?
➜ test bash /Users/me/.sdkman/candidates/sbt/current/bin/sbt --script-version
1.10.1
➜ test bash sbt --script-version
[warn] Neither build.sbt nor a 'project' directory in the current directory: /Users/me/test
c) continue
q) quit
Metadata
Metadata
Assignees
Labels
Bugarea/runner-scriptissues around sbt-the-bash-script, or bat scriptissues around sbt-the-bash-script, or bat scripthelp wanted