Skip to content

add bootstrapped distribution #2588

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

Merged
merged 3 commits into from
May 30, 2017
Merged

Conversation

liufengyun
Copy link
Contributor

Now we can release bootstrapped packages by sbt:

  • dist/pack: create non-bootstrapped release under dist/target/pack
  • dist/pack-archive: create non-bootstrapped .zip and .tar.gz under dist/target
  • dist-boostrapped/pack: create bootstrapped release under dist-bootstrapped/target/pack
  • dist-bootstrapped/pack-archive: create bootstrapped .zip and .tar.gz under dist-bootstrapped/target

The scripts are shared between the two.

@felixmulder
Copy link
Contributor

LGTM, but @smarter is the one who is most qualified to review this since he did the bootstrap.

@liufengyun
Copy link
Contributor Author

liufengyun commented May 29, 2017

I've created a test bootstrapped release, you can try it as follows on Mac OS:

brew remove dotty      # if already installed, pity I didn't change the version
brew install dotty     # use lampepfl/brew/dotty if it's the first time you install dotty

The zip and tar.gz can be downloaded for Linux/Windows as well.

@felixmulder felixmulder requested review from smarter and removed request for felixmulder and DarkDimius May 29, 2017 20:40
@liufengyun liufengyun requested review from smarter and removed request for smarter May 29, 2017 20:42
settings(packSettings).
settings(
target := baseDirectory.value / "target", // override setting in commonBootstrappedSettings
triggeredMessage in ThisBuild := Watched.clearWhenTriggered,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this here? If you want this, you can put it in your local sbt settings

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not really needed, it's copied from the setting for dotty, I'll remove it.

@smarter
Copy link
Member

smarter commented May 29, 2017

I'm going to say lgtm but I have no idea what this does, and I don't really want to know.

@liufengyun
Copy link
Contributor Author

Thanks @smarter , maybe you could also help check if the jars in the tar.gz makes sense and whether it works on your Linux. The tar.gz is generated from sbt dist-bootstrapped/pack-archive.

The particular question I have is about: whether we need scala-library-bootstrapped JAR in the package? I understand it's only a dummy project to automatically get dependency on dotty-library -- which is useful for SBT projects, but not for the command line release.

@smarter
Copy link
Member

smarter commented May 30, 2017

Thanks @smarter , maybe you could also help check if the jars in the tar.gz makes sense and whether it works on your Linux. The tar.gz is generated from sbt dist-bootstrapped/pack-archive.

Seems to be correct. At some point we need to stop using the bootclasspath for anything (it won't work with Java 9), but for now it's ok.

The particular question I have is about: whether we need scala-library-bootstrapped JAR in the package? I understand it's only a dummy project to automatically get dependency on dotty-library -- which is useful for SBT projects, but not for the command line release.

I assume you mean the scala-library jar, as you correctly explained, it shouldn't be necessary for a command line release.

@liufengyun
Copy link
Contributor Author

Thanks a lot for the clarification @smarter , I merge this PR then.

@liufengyun liufengyun merged commit 877e9e7 into scala:master May 30, 2017
@liufengyun liufengyun deleted the pack-bootstraped branch May 30, 2017 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants