add "Nightly Versions of Scala" to Overviews page#3058
add "Nightly Versions of Scala" to Overviews page#3058SethTisue merged 13 commits intoscala:mainfrom
Conversation
I'm suggesting adding this to https://docs.scala-lang.org/overviews/index.html -- at least I can't think of a better location the text is based on https://stackoverflow.com/questions/40622878/how-do-i-use-a-nightly-build-of-scala which I drafted some years ago and have been updating ever since. I should have turned it into official doc a long time ago.
|
Scala 2 reviewer: @lrytz ? |
Co-authored-by: Lukas Rytz <lukas.rytz@gmail.com>
|
I think this might be ready for merge now. @hamzaremmal can you take a look, or suggest another reviewer? Note to self: once this is merged, I should change the SO answer to point to it. I should also look in scala/scala — I think the readme might need updating. |
like we did in scala/scala-lang#1689
Sure, will do by the end of the day |
hamzaremmal
left a comment
There was a problem hiding this comment.
If mostly looked at the Scala 3 part and the hxxps stuff. For Scala 2, you have more knowledge than me 😉 . You can see my comments above.
|
|
||
| Scala 3 nightly versions are published to Maven Central. If you know the full version number of the nightly you want to use, you can use it just like any other Scala 3 version. | ||
|
|
||
| One quick way to get that version number is to visit https://dotty.epfl.ch and look in the upper left corner. |
There was a problem hiding this comment.
I'm not familiar with how this website is implemented but can we maybe add a script that scrape Maven Central and shows the latest available nightly on the website ?
There was a problem hiding this comment.
Yes, I imagine we could :-)
I leave it up to you whether to open a separate PR or ticket about it.
| ### quick version (scala-cli) | ||
|
|
||
| You can run nightlies with: | ||
|
|
||
| scala-cli -S 2.13.nightly | ||
| scala-cli -S 2.nightly # same as 2.13.nightly | ||
| scala-cli -S 2.12.nightly | ||
|
|
||
| The default command is `repl`, but all the other scala-cli subcommands such as `compile` and `run` work, too. It also works with `//>` directives in your script itself, for example: | ||
|
|
||
| //> using scala 2.nightly |
There was a problem hiding this comment.
Seems very repetitive with what the scala 3 section contain. Can we maybe merge the two of them ?
There was a problem hiding this comment.
I did it that on purpose because I figure either someone is interested in 3, or they're interested in 2, so each section ought to be complete in itself.
Whether it's really best that way, I don't have a strong feeling about. Sounds like your feeling isn't that strong either, so let's leave it like it is for now. I wouldn't mind if it got changed in the future.
| Global / resolvers += "scala-integration" at | ||
| "https://scala-ci.typesafe.com/artifactory/scala-integration/" |
There was a problem hiding this comment.
@SethTisue Do you know what's the reason behind using a custom resolver instead of Maven Central ? As Scala 3 does
There was a problem hiding this comment.
That decision predates me, which means it was at least 9 years ago. @lrytz might remember more. I think we felt that using up so much space on Maven Central would be excessive. Perhaps we were even wary of hitting some storage limit? Anyway, Guillaume made a different decision for Dotty.
Currently I think it's just inertia, we aren't necessarily opposed to changing it, but we aren't that motivated to change it, either.
Co-authored-by: Hamza Remmal <hamza@remmal.net>
Co-authored-by: Hamza Remmal <hamza@remmal.net>
Co-authored-by: Hamza Remmal <hamza@remmal.net>
|
Thank you Hamza and Lukas! |
|
This is now online at https://docs.scala-lang.org/overviews/core/nightlies.html . I changed https://stackoverflow.com/questions/40622878/how-do-i-use-a-nightly-build-of-scala to point to it. |
The end of an era. |
I'm suggesting adding this to https://docs.scala-lang.org/overviews/index.html -- at least I can't think of a better location
the text is based on https://stackoverflow.com/questions/40622878/how-do-i-use-a-nightly-build-of-scala which I drafted some years ago and have been updating ever since. I should have turned it into official doc a long time ago.