setup-java/dist/setup
Bruno Borges 4fbd0bd19d
fix: select musl JDK artifacts on Alpine for five distributions (#1220)
On Alpine, `getPlatformOption()` returned the glibc platform key for
Dragonwell, Corretto, Zulu, Liberica and Liberica NIK, so the action
resolved and installed a glibc JDK that cannot run under musl.

Add a shared `isAlpineLinux()` helper and use it to select each vendor's
musl artifacts:

| distribution | glibc         | musl           |
| ------------ | ------------- | -------------- |
| Dragonwell   | `linux`       | `alpine-linux` |
| Corretto     | `linux`       | `alpine`       |
| Zulu         | `linux_glibc` | `linux_musl`   |
| Liberica     | `linux`       | `linux-musl`   |
| Liberica NIK | `linux`       | `linux-musl`   |

Each key was verified against the vendor's live metadata API or manifest.

There is deliberately no silent fallback to glibc when a vendor has no
musl build for the requested version or architecture: the existing "could
not find a version that satisfies" error fires instead. This matches the
behaviour Temurin and SapMachine already have, and a glibc JDK would not
run on musl anyway.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 74248bb0-72af-41d8-b85d-b0f5836e68db
2026-08-05 12:54:41 -04:00
..
19.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
63.index.js fix: select musl JDK artifacts on Alpine for five distributions (#1220) 2026-08-05 12:54:41 -04:00
81.index.js Import Maven signing keys into an isolated GPG home (#1214) 2026-08-05 12:05:36 -04:00
126.index.js fix: select musl JDK artifacts on Alpine for five distributions (#1220) 2026-08-05 12:54:41 -04:00
151.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
172.index.js Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
182.index.js Report concrete versions for floating Oracle JDK downloads (#1213) 2026-08-05 11:57:27 -04:00
220.index.js Import Maven signing keys into an isolated GPG home (#1214) 2026-08-05 12:05:36 -04:00
242.index.js Fix JDK resolution cache platform identity (#1210) 2026-08-05 12:45:11 -04:00
282.index.js Fix JetBrains Runtime release pagination (#1218) 2026-08-05 12:32:52 -04:00
348.index.js Fix JDK resolution cache platform identity (#1210) 2026-08-05 12:45:11 -04:00
377.index.js Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
394.index.js Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
451.index.js Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
463.index.js Fix JDK resolution cache platform identity (#1210) 2026-08-05 12:45:11 -04:00
524.index.js fix: select musl JDK artifacts on Alpine for five distributions (#1220) 2026-08-05 12:54:41 -04:00
557.index.js Fix JDK resolution cache platform identity (#1210) 2026-08-05 12:45:11 -04:00
675.index.js fix: select musl JDK artifacts on Alpine for five distributions (#1220) 2026-08-05 12:54:41 -04:00
735.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
767.index.js Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
779.index.js Add conditional JDK caching (#1201) 2026-08-04 21:54:10 -04:00
824.index.js Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
939.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
968.index.js Report concrete versions for floating Oracle JDK downloads (#1213) 2026-08-05 11:57:27 -04:00
971.index.js Add conditional JDK caching (#1201) 2026-08-04 21:54:10 -04:00
978.index.js fix: select musl JDK artifacts on Alpine for five distributions (#1220) 2026-08-05 12:54:41 -04:00
index.js Fix JDK resolution cache platform identity (#1210) 2026-08-05 12:45:11 -04:00
package.json Migrate to ESM and upgrade dependencies (#1078) 2026-07-08 10:15:00 +01:00