Skip to content

Commit 7f27eaf

Browse files
authored
chore: use pinned scala3 files instead of the directories in the build (#23518)
Follows #23517 The compiler adds the `sourceDirectories` as an option so that it can load the definitions from the stdlib. Now, instead of adding the directories, we just add the pinned files. This has been missing when I merged locally the scala 2 history. With this change, everything behaves as expected when I opened #23517.
2 parents ee55bde + caced21 commit 7f27eaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project/Build.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,8 @@ object Build {
11271127
libraryDependencies += "org.scala-lang" % "scala-library" % stdlibVersion,
11281128
(Compile / scalacOptions) ++= Seq(
11291129
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
1130-
"-sourcepath", (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File.pathSeparator),
1130+
// NOTE: Do not use `sourceDirectories` since `sources` are currently pinned until `3.8.0`
1131+
"-sourcepath", (Compile / sources).value.map(_.getCanonicalPath).distinct.mkString(File.pathSeparator),
11311132
"-Yexplicit-nulls",
11321133
),
11331134
(Compile / doc / scalacOptions) ++= ScaladocConfigs.DefaultGenerationSettings.value.settings,

0 commit comments

Comments
 (0)