镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Don't restore the Maven cache in the release workflow - #132

Merged
yawkat merged 1 commit into
mainfrom
fix/issue-110
Sep 25, 2026
Merged

yawkat merged 1 commit into
mainfrom
fix/issue-110

Conversation

@yawkat

@yawkat yawkat commented Sep 25, 2026

Copy link
Copy Markdown
Owner

Fixes #110.

This removes cache: maven from all five setup-java steps in build-all-and-publish.yml. That includes the native build jobs and the credentialed assemble/publish job. test.yml and docs.yml keep their caches.

Caches written by PR runs are scoped to the PR ref, so they can't reach a release run. Only code running on main or on the release tag could poison the shared setup-java-<os>-maven-<hash(pom.xml)> key; one example is the unpinned Python dependencies in the docs job. This is defence in depth. The cost is that each release run downloads its dependencies from Central.

How to verify: a workflow_dispatch run with publish=false should no longer log "Cache restored from key: setup-java-…".

Possible follow-ups, not in this PR:

  • The release-triggered docs job still restores the shared Maven cache and a setup-uv cache, and it holds the Cloudflare credentials.
  • Adding -ntp to the release ./mvnw calls would cut download log noise.

🤖 Generated with Claude Code

Remove cache: maven from every setup-java step in
build-all-and-publish.yml so the native builds and the credentialed
publish step always resolve dependencies fresh from Maven Central
rather than from a cache entry shared with other workflows on the
same ref. test.yml and docs.yml keep their caches.

Fixes #110

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yawkat
yawkat enabled auto-merge (squash) September 25, 2026 15:39
@yawkat yawkat added this to the 1.11.4 milestone Sep 25, 2026
@yawkat
yawkat merged commit ab7aa55 into main Sep 25, 2026
6 checks passed
@yawkat
yawkat deleted the fix/issue-110 branch September 25, 2026 16:05
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.

Don't restore the Maven cache in the release workflow

1 participant