@@ -935,6 +935,7 @@ object Build {
935935
936936 fetchScalaJSSource := {
937937 import org .eclipse .jgit .api ._
938+ import org .eclipse .jgit .lib ._
938939
939940 val s = streams.value
940941 val ver = scalaJSVersion
@@ -946,12 +947,14 @@ object Build {
946947 new CloneCommand ()
947948 .setDirectory(trgDir)
948949 .setURI(" https://github.com/scala-js/scala-js.git" )
950+ .setNoCheckout(true )
949951 .call()
950952 }
951953
952954 // Checkout proper ref. We do this anyway so we fail if something is wrong
953955 val git = Git .open(trgDir)
954956 s.log.info(s " Checking out Scala.js source version $ver" )
957+ git.getRepository().getConfig().setEnum(" core" , null , " autocrlf" , CoreConfig .AutoCRLF .FALSE )
955958 git.checkout().setName(s " v $ver" ).call()
956959
957960 trgDir
@@ -1029,7 +1032,7 @@ object Build {
10291032 ++ (dir / " shared/src/test/require-jdk7" ** " *.scala" ).get
10301033
10311034 ++ (dir / " js/src/test/scala" ** ((" *.scala" : FileFilter )
1032- -- " ExportsTest.scala" // JS exports + do not compile because of a var in a structural type
1035+ -- " ExportsTest.scala" // JS exports + IR checking error
10331036 -- " ObjectTest.scala" // compile errors caused by #9588
10341037 -- " StackTraceTest.scala" // would require `npm install source-map-support`
10351038 -- " UnionTypeTest.scala" // requires the Scala 2 macro defined in Typechecking*.scala
@@ -1045,12 +1048,8 @@ object Build {
10451048 // Putting them here instead of above makes sure that we do not regress on compilation+linking.
10461049 Test / testOptions += Tests .Filter { name =>
10471050 ! Set [String ](
1048- " org.scalajs.testsuite.compiler.InteroperabilityTest" , // 3 tests require JS exports, all other tests pass
1049-
10501051 " org.scalajs.testsuite.jsinterop.AsyncTest" , // needs JS exports in PromiseMock.scala
1051- " org.scalajs.testsuite.jsinterop.DynamicTest" , // one test requires JS exports, all other tests pass
10521052 " org.scalajs.testsuite.jsinterop.JSExportStaticTest" , // JS exports
1053- " org.scalajs.testsuite.jsinterop.NonNativeJSTypeTest" , // 1 test fails because of a progression for value class fields (needs an update upstream)
10541053
10551054 // Not investigated so far
10561055 " org.scalajs.testsuite.junit.JUnitAbstractClassTestCheck" ,
@@ -1205,6 +1204,9 @@ object Build {
12051204 s """ updateOptions in Global ~= (_.withLatestSnapshots(false))
12061205 |addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % " $sbtDottyVersion") """ .stripMargin
12071206 IO .write(baseDirectory.value / " sbt-dotty-sbt" , pluginText)
1207+ val scalaJSPluginText =
1208+ s """ addSbtPlugin("org.scala-js" % "sbt-scalajs" % " $scalaJSVersion")\n """
1209+ IO .write(baseDirectory.value / " sbt-scalajs-sbt" , scalaJSPluginText)
12081210 IO .write(baseDirectory.value / " scala3-bootstrapped.version" , dottyVersion)
12091211 },
12101212 testOptions in Test += Tests .Argument (
0 commit comments