ci(pre-commit-advisory): bump go-pre-commit to v4.6.6 for the stateless-env wipe fix - #60
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: localenv builds).