-
Notifications
You must be signed in to change notification settings - Fork 950
[1.x] fix: --allow-empty fixes #7966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cd9f1c4
to
f02946d
Compare
@@ -519,6 +544,7 @@ run() { | |||
done | |||
echo "shutdown ${#sbt_processes[@]} sbt processes" | |||
else | |||
checkWorkingDirectory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkWorkingDirectory
is deferred until here.
Tested on Windows (Windows 10, Windows Terminal with Windows Powershell). Tried to follow instruction to opt out of
|
Issue 2: On Windows (same setup as #7966 (comment)),
I guess |
Test environment: Windows 10, Windows Terminal with Git Bash
Note we did not append |
**Problem** 1. Currently users are automatically opted into -create-sbt, somewhat implicitly. 2. When somehow they are not, the check mechanism currently blocks for input. **Solution** 1. Support a new location for sbtopts file under XSG_CONFIG_HOME/sbt 2. Rename -create-sbt to --allow-empty, and don't opt everyone in 3. Exit 1 instead of blocking for input
720c226
to
cd58481
Compare
In the interest of time, I plan to squash and land this today. |
Yeah let's do that for now. We can investigate #7966 (comment) later. I won't get access to Windows machine for the next few days. |
Fixes #7942
Fixes #2123
Problem
-create-sbt
, somewhat implicitly.sbt --script-version
Solution
sbtopts
file under$XDG_CONFIG_HOME/sbt
-create-sbt
to--allow-empty
, and don't opt everyone in