-
-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the scala-library dependency for (generic) platform modules (#2739)
In Scala 3 modules, that also define a platform, the scala3-library is not correctly resolved. The current implementation exists merely as a convenience for JS and Native modules. `ScalaNativeModule` already handles a correct scala library by overriding `scalaLibraryIvyDeps`. This pull request overrides the same in `ScalaJSModule` and removed the faulty platfrom dependency from `ScalaModule`. E.g. imagine, someone tries to build a Mill plugin with Scala 3 (which is currently not supported) and sets the platform to `_mill0.11`, then you would run into the following issue: ```scala object root extends ScalaModule { override def scalaVersion = "3.3.0" override def platformSuffix = "_mill0.11" // .. } ``` ``` >> mill ivyDepsTree 1 targets failed resolvedIvyDeps Resolution failed for 1 modules: -------------------------------------------- org.scala-lang:scala3-library_mill0.11_3:3.3.0 not found: /Users/me/ivy2/local/org.scala-lang/scala3-library_mill0.11_3/3.3.0/ivys/ivy.xml not found: https://repo1.maven.org/maven2/org/scala-lang/scala3-library_mill0.11_3/3.3.0/scala3-library_mill0.11_3-3.3.0.pom ``` Pull request: #2739
- Loading branch information
Showing
4 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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