@@ -935,6 +935,7 @@ object Build {
935
935
936
936
fetchScalaJSSource := {
937
937
import org .eclipse .jgit .api ._
938
+ import org .eclipse .jgit .lib ._
938
939
939
940
val s = streams.value
940
941
val ver = scalaJSVersion
@@ -946,12 +947,14 @@ object Build {
946
947
new CloneCommand ()
947
948
.setDirectory(trgDir)
948
949
.setURI(" https://github.com/scala-js/scala-js.git" )
950
+ .setNoCheckout(true )
949
951
.call()
950
952
}
951
953
952
954
// Checkout proper ref. We do this anyway so we fail if something is wrong
953
955
val git = Git .open(trgDir)
954
956
s.log.info(s " Checking out Scala.js source version $ver" )
957
+ git.getRepository().getConfig().setEnum(" core" , null , " autocrlf" , CoreConfig .AutoCRLF .FALSE )
955
958
git.checkout().setName(s " v $ver" ).call()
956
959
957
960
trgDir
@@ -1029,7 +1032,7 @@ object Build {
1029
1032
++ (dir / " shared/src/test/require-jdk7" ** " *.scala" ).get
1030
1033
1031
1034
++ (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
1033
1036
-- " ObjectTest.scala" // compile errors caused by #9588
1034
1037
-- " StackTraceTest.scala" // would require `npm install source-map-support`
1035
1038
-- " UnionTypeTest.scala" // requires the Scala 2 macro defined in Typechecking*.scala
@@ -1045,12 +1048,8 @@ object Build {
1045
1048
// Putting them here instead of above makes sure that we do not regress on compilation+linking.
1046
1049
Test / testOptions += Tests .Filter { name =>
1047
1050
! Set [String ](
1048
- " org.scalajs.testsuite.compiler.InteroperabilityTest" , // 3 tests require JS exports, all other tests pass
1049
-
1050
1051
" 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
1052
1052
" 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)
1054
1053
1055
1054
// Not investigated so far
1056
1055
" org.scalajs.testsuite.junit.JUnitAbstractClassTestCheck" ,
@@ -1205,6 +1204,9 @@ object Build {
1205
1204
s """ updateOptions in Global ~= (_.withLatestSnapshots(false))
1206
1205
|addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % " $sbtDottyVersion") """ .stripMargin
1207
1206
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)
1208
1210
IO .write(baseDirectory.value / " scala3-bootstrapped.version" , dottyVersion)
1209
1211
},
1210
1212
testOptions in Test += Tests .Argument (
0 commit comments