-
Notifications
You must be signed in to change notification settings - Fork 1.1k
chore: add support for sbt-test
in the new build
#23748
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
Open
hamzaremmal
wants to merge
1
commit into
scala:main
Choose a base branch
from
hamzaremmal:new-sbt-test
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+47
−94
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hamzaremmal
added a commit
that referenced
this pull request
Aug 15, 2025
…nstead of `semver-spec` (#23753) In some scenarios, specifically in cross compilation projects, sbt will complain that `scala-library:2.13.x` and `scala-library:3.x.y` might be imcompatible, as they are both declared `semver-spec`. See en example here: ```scala [error] (update) found version conflict(s) in library dependencies; some are suspected to be binary incompatible: [error] [error] * org.scala-lang:scala-library:3.8.0-RC1-bin-SNAPSHOT (semver-spec) is selected over 2.13.0 [error] +- org.scala-lang:scala3-library_3:3.8.0-RC1-bin-SNAPSHOT (depends on 3.8.0-RC1-bin-SNAPSHOT) [error] +- org.scala-lang.modules:scala-xml_2.13:1.2.0 (depends on 2.13.0) ``` In this PR, we change the version scheme of both `scala-library` and `scalajs-scalalib_2.13` to `always` so that the transition between the old stdlib structure and the new one stay invisible to the users. In the future, when we break binary compatibility (meaning Scala 4), we can revert this PR and have artifacts labeled with `semver-spec` as it will be exactly that scheme. --- The correctness was validated in #23748 locally. [skip ci]
0341c3f
to
9a24c0a
Compare
e717cd2
to
1a0d946
Compare
hamzaremmal
commented
Oct 7, 2025
Comment on lines
-65
to
-67
- name: Generate documentation for example project using dotty-sbt | ||
run: ./project/scripts/sbt "sbt-test/scripted sbt-dotty/scaladoc" | ||
|
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.
We will be running these alongside all the other scripted tests anyways, no need to run them twice.
1a0d946
to
c83f49b
Compare
sjrd
approved these changes
Oct 7, 2025
sjrd
reviewed
Oct 7, 2025
c83f49b
to
6622343
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR configures the scripted tests (
sbt-test
) to be run using the new stdlib.This PR should fail at the moment as we do not have thescaladoc
artifacts yet in the build.