-
Notifications
You must be signed in to change notification settings - Fork 937
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
sbt.ivy.home and ivy.home properties both required #1894
Comments
Thanks for the report. |
I'm thinking this can be fixed by forwarding the flag in the following line:
I wonder if anyone else might be relying on older semantics. |
@eed3si9n dont' let the scripted bit fool you. The core issue here is that we need to set BOTH flags in sbt, because of inconsistent usage. See: https://github.com/sbt/sbt/blob/0.13/ivy/src/main/scala/sbt/Resolver.scala#L359 as an example of somethign which should be |
Maybe |
Any update on this? I am experiencing the same issue as @nkijak. It appears that setting I've tried the following:
My logs still show:
It works if I don't customize |
This is a very confusing issue -- at the very least it should be documented better. |
As @olafurpg points out, this makes it very difficult to run scripted tests in CI where you need to point to a custom This is what I tried to do for my situation: export SBT_OPTS="-Dsbt.global.base=$CI_PROJECT_DIR/sbt-cache/.sbtboot -Dsbt.boot.directory=$CI_PROJECT_DIR/sbt-cache/.boot -Dsbt.ivy.home=$CI_PROJECT_DIR/.ivy" Where scriptedLaunchOpts := { scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value) ++
// append SBT_OPTS so scripted launches with the correct cache dirs
sys.env.get("SBT_OPTS").map(x => x.split(" ").toSeq).getOrElse(Nil)
}
scriptedBufferLog := false This worked for most of the plugin projects I have been working on, but recently started failing again during a refactor. After some investigation into that project, I found that the particular issue was due to scoping issues. Inspecting the value of I hope this helps someone else running into a similar issue with a custom |
I guess we can just drop |
any update on this? As @a1kemist has pointed out, this the scripted plugin useless if we can't run it in CICD where we need to point to a custom I have the following as my scriptedLaunchOptions:
And I'm passing the
The error output is:
The |
Steps
sbt scripted
withsbt.ivy.home
pointing to custom location that is not~/.ivy2
Problem
Expectations
The text was updated successfully, but these errors were encountered: