-
Notifications
You must be signed in to change notification settings - Fork 951
Make sbt --version
respect SBT_OPTS and friends
#6509
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 8000 to your account
base: develop
Are you sure you want to change the base?
Conversation
Hi @parched, Thank you for your contribution! We really value the time you've taken to put this together. Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement: |
Turns out SBT_OPTS was ignored for `--version`. Potential fix sbt/sbt#6509
sbt/sbt-launcher-package#276 added it, and I'm guessing |
Ok, I'm happy to close the PR if you think that's best? I worked around it by just doing |
I think the direction of the change is good but the tests are currently failing. It looks like the previous incantation didn't have color but the new one does? |
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.
Ok, I've found the problem, will push a fix when I'm back at my computer.
Having set
SBT_OPTS="-Dsbt.boot.directory=/not/the/default"
I found when I ransbt --version
SBT was being redownloaded into~/.sbt
. This fixes that and I assumeSBT_OPTS
wasn't ignored on purpose, but I'm not sure.