Skip to content

ci(pre-commit-advisory): bump go-pre-commit to v4.6.6 for the stateless-env wipe fix - #60

Merged
blairham merged 1 commit into
mainfrom
ci/go-pre-commit-4.6.6
Aug 15, 2026
Merged

ci(pre-commit-advisory): bump go-pre-commit to v4.6.6 for the stateless-env wipe fix#60
blairham merged 1 commit into
mainfrom
ci/go-pre-commit-4.6.6

Conversation

@blairham

Copy link
Copy Markdown
Contributor

Bumps the pinned go-pre-commit from v4.6.1 to v4.6.6 in the advisory workflow.

The important carry: blairham/go-pre-commit#40 — a hook env restored from cache without its install-state marker is now wiped before install instead of installed over. This workflow's hook-env caching (#50/#53) is exactly the setup that can produce such entries; on golang hooks they previously failed the whole run with go install ./...: directory go_env-default/pkg/mod/... outside main module (seen 2026-08-15 across blairham repos with the same action). With the wipe, a bad cache entry costs one reinstall instead of a red job.

Also picks up v4.6.4/v4.6.5 (Homebrew formula packaging; repo: local env builds).

…ss-env wipe fix

v4.6.6 (blairham/go-pre-commit#40) wipes a leftover hook environment
that has no install-state marker before installing over it. The
advisory workflow restores hook envs from actions/cache (#50/#53), so
a cache entry missing its install_state_v2 previously poisoned the run:
golang envs failed with "go install ./...: directory go_env-default/
pkg/mod/... outside main module". With the wipe, a bad cache entry
costs one reinstall instead of a red job.
@blairham
blairham merged commit 1b6af5a into main Aug 15, 2026
2 checks passed
@blairham
blairham deleted the ci/go-pre-commit-4.6.6 branch August 15, 2026 13:35
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