From ca27914de7a8b31a77fdaff60a6b2da816d58f59 Mon Sep 17 00:00:00 2001 From: Blair Hamilton Date: Sat, 15 Aug 2026 09:01:36 -0400 Subject: [PATCH] ci(pre-commit-advisory): bump go-pre-commit to v4.6.6 for the stateless-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. --- .github/workflows/pre-commit-advisory.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit-advisory.yml b/.github/workflows/pre-commit-advisory.yml index b2b14fc..f919d54 100644 --- a/.github/workflows/pre-commit-advisory.yml +++ b/.github/workflows/pre-commit-advisory.yml @@ -168,7 +168,7 @@ jobs: # workflow drives pre-commit itself (diff-scoped run below + the # install-hooks cache seed), and the cache step above owns caching. - name: Install go-pre-commit - uses: blairham/go-pre-commit@v4.6.1 + uses: blairham/go-pre-commit@v4.6.6 with: version: v4.6.1 install-only: 'true'