-
Notifications
You must be signed in to change notification settings - Fork 950
Closed
Labels
Bugarea/sbtnthin client issuesthin client issuesarea/windowsWindows-specific issueWindows-specific issue
Milestone
Description
steps
https://github.com/bjaglin/sbtn-windows/blob/main/.github/workflows/ci.yml
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- uses: sbt/setup-sbt@v1
- run: sbt -v --client 'show sbtVersion'
shell: bash
problem
https://github.com/bjaglin/sbtn-windows/actions/runs/13846782601/job/38746750641
Run sbt/setup-sbt@v1
Run echo "sbt_toolpath=$RUNNER_TOOL_CACHE/sbt/$SBT_RUNNER_VERSION" >> "$GITHUB_OUTPUT"
Run if [ -f "$SBT_TOOLPATH/sbt/bin/sbt" ]; then
Run actions/cache@v4
Cache hit for: Windows-sbt-1.10.10-1.1.4
Received 56485248 of 56485248 (100.0%), 136.4 MBs/sec
Cache Size: ~54 MB (56485248 B)
"C:\Program Files\Git\usr\bin\tar.exe" -xf D:/a/_temp/4a940456-9ef8-48c1-8370-6a46dce61945/cache.tzst -P -C D:/a/sbtn-windows/sbtn-windows --force-local --use-compress-program "zstd -d"
Cache restored successfully
Cache restored from key: Windows-sbt-1.10.10-1.1.4
Run cd "$SBT_TOOLPATH"
sbt/bin/sbt
Run sbt -v --client 'show sbtVersion'
sbt -v --client 'show sbtVersion'
shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0}
env:
JAVA_HOME: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\21.0.6-7.0\x64
JAVA_HOME_21_X64: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\21.0.6-7.0\x64
[sbt_options] declare -a sbt_options=()
[debug] running native client
# Executing command line:
/c/hostedtoolcache/windows/sbt/1.10.10/sbt/bin/sbtn-x86_64-pc-win32.exe
--sbt-script=/c/hostedtoolcache/windows/sbt/1.10.10/sbt/bin/sbt
-v
"show sbtVersion"
[info] entering *experimental* thin client - BEEP WHIRR
[info] server was not detected. starting an instance
[error] Failed to start server : java.io.IOException: Cannot run program "C:/hostedtoolcache/windows/sbt/1.10.10/sbt/bin/sbt" (in directory "D:\a\sbtn-windows\sbtn-windows"): CreateProcess error=193, %1 is not a valid Win32 application
[error] failed to connect to server
expectation
server is started
notes
I don't have a windows machine to tell if the problem is specific to Github action or not. This problem was found when trying to start the sbt launcher against a sbt.version=2.0.0-M4
, which causes the runner to use sbtn since #7775.
workaround
Invoking sbt via powershell instead of bash does not trigger sbtn and thus the problem is not visible.
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- uses: sbt/setup-sbt@v1
- run: sbt -v --client 'show sbtVersion'
- shell: bash
Metadata
Metadata
Assignees
Labels
Bugarea/sbtnthin client issuesthin client issuesarea/windowsWindows-specific issueWindows-specific issue