Description:
Notice of breaking changes for GitHub Actions warned that certain packages would not be present in Ubuntu 24.04, this included sbt.
This was tripped on by this repository and worked around by pinning backwards (from ubuntu-latest to ubuntu-22.04):
Unfortunately, anyone who legitimately expected "setup-java" to set up java for use with sbt which is listed as a supported feature of the actions/setup-java repository:
|
- Caching dependencies managed by sbt. |
... doesn't get a working sbt environment.
Task version:
Specify the task version actions/setup-java@v4, as in:
https://github.com/GarnerCorp/build-actions/blob/f3a79ac52d53e8b2218381ae5dd240619ed9eacf/scala/action.yml#L129-L134
Platform:
Runner type:
Repro steps:
- Create a workflow that
runs-on: ubuntu-latest or runs-on: ubuntu-24.04
- Add a step that either
uses: actions/setup-java@v4 or uses: GarnerCorp/build-actions/scala@0cc885d8117f6bb9c89dc99a34f5edebeac115cf
- If you aren't using the build-actions/scala action which automatically uses
sbt, run sbt
Expected behavior:
sbt should work
Actual behavior:
sbt: not found
Description:
Notice of breaking changes for GitHub Actions warned that certain packages would not be present in Ubuntu 24.04, this included
sbt.This was tripped on by this repository and worked around by pinning backwards (from
ubuntu-latesttoubuntu-22.04):Unfortunately, anyone who legitimately expected "setup-java" to set up java for use with sbt which is listed as a supported feature of the actions/setup-java repository:
setup-java/README.md
Line 16 in 7a6d8a8
... doesn't get a working sbt environment.
Task version:
Specify the task version
actions/setup-java@v4, as in:https://github.com/GarnerCorp/build-actions/blob/f3a79ac52d53e8b2218381ae5dd240619ed9eacf/scala/action.yml#L129-L134
Platform:
Runner type:
Repro steps:
runs-on: ubuntu-latestorruns-on: ubuntu-24.04uses: actions/setup-java@v4oruses: GarnerCorp/build-actions/scala@0cc885d8117f6bb9c89dc99a34f5edebeac115cfsbt, runsbtExpected behavior:
sbtshould workActual behavior:
sbt: not found