Skip to content

Backport #1151: Fix missing wrapper cache distributions - #1153

Merged
brunoborges merged 2 commits into
actions:releases/v5from
brunoborges:brunoborges-backport-wrapper-cache-fix
Jul 29, 2026
Merged

Backport #1151: Fix missing wrapper cache distributions#1153
brunoborges merged 2 commits into
actions:releases/v5from
brunoborges:brunoborges-backport-wrapper-cache-fix

Conversation

@brunoborges

Copy link
Copy Markdown
Contributor

Description:
Backports #1151 from main to releases/v5.

Projects can keep Maven or Gradle wrapper metadata while intentionally using the system build tool, leaving the wrapper distribution directory absent. The post action now resolves optional wrapper-cache paths before calling @actions/cache; when no path exists, it skips only that wrapper cache and continues saving the main dependency cache.

Regression tests cover both Maven and Gradle and verify that the main cache is still saved. The generated setup and cleanup bundles are rebuilt with the fix.

Related issue:
Source backport: #1151

Fixes: #1150

Check list:

  • Ran npm run check locally (format, lint, build, test) and all checks pass.
  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

Skip optional Maven and Gradle wrapper cache saves when their distribution paths do not exist, while allowing the main dependency cache to save.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c0b19ff2-ef52-4ac1-a832-0f8f72c43219
@brunoborges
brunoborges requested a review from a team as a code owner July 28, 2026 22:50
@brunoborges
brunoborges merged commit e498d2a into actions:releases/v5 Jul 29, 2026
405 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant