-
Notifications
You must be signed in to change notification settings - Fork 928
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 0.13] Add local-preloaded repo #2993
Conversation
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.
.. pending Travis CI passing
There's a test to fix here, @eed3si9n. |
9677636
to
36ebc52
Compare
Got around to fixing these tests. |
|
Only fails when running with the maven resolver plugin, i.e
|
36ebc52
to
0500959
Compare
Great little change that should make it easier to package up a "batteries included" bundle of IntelliJ+sbt (https://youtrack.jetbrains.com/issue/SCL-11406) |
This looks awesome - can you share how you used sbt-export-repo to produce the pre-primed cache? |
@dpratt It's here sbt/sbt-launcher-package#145. btw it's a preloaded local repo, not a cache ( |
I'm having trouble getting this working from installing via the universal package (tgz file). The tgz unpacks into |
It's not obvious from either the documentation or the packaging, but the bundled sbt script does an rsync on startup from local-preloaded to ~/.sbt/preloaded
… On Apr 13, 2017, at 5:59 PM, Vincent Woo ***@***.***> wrote:
I'm having trouble getting this working from installing via the universal package (tgz file). The tgz unpacks into bin conf and lib, but on an initial run I can't seem to get sbt to use the local-preloaded directory under lib. Is there some setup step I'm missing?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hm, yeah. I also manually synced it beforehand too. In either case, |
Do you have sbt.override.build.repos set? If you do, it overrides the baked in bootstrap resolvers in the launcher jar, which includes ~/.sbt/preloaded
You can do what I did, which is to just add the repo manually to my repositories file, or you can unset the param.
… On Apr 13, 2017, at 6:28 PM, Vincent Woo ***@***.***> wrote:
Hm, yeah. I also manually synced it beforehand too. In either case, sbt still tries to download itself. Do I need to set some other repository flag to get it to do the right thing?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This adds additional "local-preloaded" repository that we can safely stuff to allow off-the-grid installation.
In conjunction with sbt-export-repo, I was able to launch sbt 0.13.14-SNAPSHOT from an airplane using fresh ivy.home and sbt.global.base.
fast boot up
As a nice side effect of off-the-grid installation is that the boot up from empty state is going to be very fast. About 10s.
The second run was 5s.
Ref #2518