File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
build/src/main/scala/scala/build/bsp
integration/src/test/scala/scala/cli/integration Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ final class BspImpl(
75
75
pprint.stderr.log(sourcesMain)
76
76
77
77
val options0Main = sourcesMain.buildOptions
78
- val options0Test = sourcesTest.buildOptions
78
+ val options0Test = sourcesTest.buildOptions.orElse(options0Main)
79
79
80
80
val generatedSourcesMain = sourcesMain.generateSources(inputs.generatedSrcRoot(Scope .Main ))
81
81
val generatedSourcesTest = sourcesTest.generateSources(inputs.generatedSrcRoot(Scope .Test ))
Original file line number Diff line number Diff line change @@ -772,7 +772,8 @@ abstract class BspTestDefinitions(val scalaVersionOpt: Option[String])
772
772
val inputs = TestInputs (
773
773
Seq (
774
774
os.rel / " Messages.scala" ->
775
- """ object Messages {
775
+ """ // using lib "com.lihaoyi::os-lib:0.7.8"
776
+ |object Messages {
776
777
| def msg = "Hello"
777
778
|}
778
779
|""" .stripMargin,
@@ -826,12 +827,18 @@ abstract class BspTestDefinitions(val scalaVersionOpt: Option[String])
826
827
uri.drop(idx + 1 )
827
828
}
828
829
829
- if (actualScalaVersion.startsWith(" 2.13" ))
830
+ if (actualScalaVersion.startsWith(" 2.13" )) {
830
831
expect(foundDepSources.exists(_.startsWith(" utest_2.13-0.7.10" )))
831
- else if (actualScalaVersion.startsWith(" 2.12" ))
832
+ expect(foundDepSources.exists(_.startsWith(" os-lib_2.13-0.7.8" )))
833
+ }
834
+ else if (actualScalaVersion.startsWith(" 2.12" )) {
832
835
expect(foundDepSources.exists(_.startsWith(" utest_2.12-0.7.10" )))
833
- else
836
+ expect(foundDepSources.exists(_.startsWith(" os-lib_2.12-0.7.8" )))
837
+ }
838
+ else {
834
839
expect(foundDepSources.exists(_.startsWith(" utest_3-0.7.10" )))
840
+ expect(foundDepSources.exists(_.startsWith(" os-lib_3-0.7.8" )))
841
+ }
835
842
836
843
expect(foundDepSources.exists(_.startsWith(" test-interface-1.0" )))
837
844
expect(foundDepSources.forall(_.endsWith(" -sources.jar" )))
You can’t perform that action at this time.
0 commit comments