-
Notifications
You must be signed in to change notification settings - Fork 22
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
Support sbt 1.4.0 when COURSIER_CACHE is overridden #75
Conversation
Do you want to try adding a scripted test for this? I think adding the following line to build.sbt in the test project should reproduce the issue:
When I upgraded the example project to sbt 1.4.0 and added that line I got debug output like this:
|
Added the scripted test. I was wondering how I could add an env variable while doing scripted test and completely forgot I could override it in build.sbt. Thanks for the suggestion, added the test and verified it fails without this change and passes with the change |
Hmm, I realized this key doesn't exist in sbt 1.2.x or lower and fails the test for those builds 😬 Any suggestions on how I could resolve? Should I pin the scripted test to sbt 1.4.0? |
I can't think of a good way to make just this test run only on certain versions of sbt 1.x. If you want to give up on writing a test for this, I'm fine with that. You've already tested it manually and I've reviewed the code, so I'm satisfied that it works. In an ideal world we'd have an automated test, but I don't think it's worth spending too much effort on. |
This reverts commit e2e1d4a.
Yeah we can add a test when we stop supporting sbt 1.2.x or lower, for now i've reverted the test commit |
Fixes #74
When COURSIER_CACHE is overriden (say to
.cache/coursier/v1
), in sbt-1.4.0 we would get file path as${BASE}/.cache/coursier/v1/https/repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.30/slf4j-api-1.7.30.jar
in which case we need to interpolate ${BASE} as well. This PR attempts to do so