setup-java/dist/cleanup
Julien Dubois d17a685945
Handle early dependency cache failures during Java setup (#1226)
* Handle cache restore promise rejections

Validate dependency cache providers before Java installation and settle cache restore failures immediately while preserving setup error precedence.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Make cache-rejection regression test deterministic

Reject the cache restore only after it has started and while the Java
installation is still pending, instead of relying on event-loop timing.
Verified the test fails against the pre-fix implementation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Validate cache input after required input checks

Move the package-manager validation out of the top of run() so that
missing java-version/java-version-file and toolchain id errors keep
their original precedence. Validation now happens immediately before
the cache restore is started, which still fails fast before any JDK
download.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Bruno Borges <brborges@microsoft.com>
2026-08-06 23:04:13 -04:00
..
314.index.js Add conditional JDK caching (#1201) 2026-08-04 21:54:10 -04:00
348.index.js Fix JDK resolution cache platform identity (#1210) 2026-08-05 12:45:11 -04:00
377.index.js Handle early dependency cache failures during Java setup (#1226) 2026-08-06 23:04:13 -04:00
767.index.js chore(deps): bump brace-expansion from 5.0.8 to 5.0.9 (#1202) 2026-08-04 21:15:15 -04:00
index.js Fix JetBrains GitHub token resolution (#1224) 2026-08-06 11:46:13 -04:00
package.json Migrate to ESM and upgrade dependencies (#1078) 2026-07-08 10:15:00 +01:00