Skip to content

Commit

Permalink
Fix windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BarkingBad committed Dec 14, 2021
1 parent 4b74afb commit d0d7022
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ jobs:
uses: actions/checkout@v2

- name: Test
run: sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test"
run: sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test"
shell: cmd

- name: Scala.js Test
Expand Down
2 changes: 1 addition & 1 deletion compiler/test-resources/scripting/classpathReport.sc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S bin/scala -classpath 'dist/target/pack/lib/*'
#!bin/scala -classpath 'dist/target/pack/lib/*'

import java.nio.file.Paths

Expand Down
2 changes: 1 addition & 1 deletion compiler/test-resources/scripting/unglobClasspath.sc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S bin/scala -classpath 'dist/target/pack/lib/*'
#!bin/scala -classpath 'dist/target/pack/lib/*'

// won't compile unless the hashbang line sets classpath
import org.jline.terminal.Terminal
Expand Down
2 changes: 1 addition & 1 deletion compiler/test/dotty/tools/scripting/ClasspathTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class ClasspathTests:


//////////////// end of tests ////////////////
lazy val cwd = Paths.get(".").toAbsolutePath
lazy val cwd = Paths.get(".").toAbsolutePath.normalize
lazy val wildcardEntry = "dist/target/pack/lib/*"

def listJars(dir: String) =
Expand Down
10 changes: 10 additions & 0 deletions dist/bin/scala
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ while [[ $# -gt 0 ]]; do
addScala "$1"
shift
;;
-classpath*)
if [ "$1" != "${1##* }" ]; then
# hashbang-combined args "-classpath 'lib/*'"
A=$1 ; shift # consume $1 before adding its substrings back
set -- $A "$@" # split $1 on whitespace and put it back
else
addScala "$1"
shift
fi
;;
*)
addScala "$1"
shift
Expand Down

0 comments on commit d0d7022

Please sign in to comment.