From 02b36b687e4da89fbfc34cebfbaabf3f6f8e0895 Mon Sep 17 00:00:00 2001 From: Stefan VanBuren Date: Mon, 27 Apr 2026 09:37:38 -0400 Subject: [PATCH] Cache golangci-lint binary in addition to versioned symlink Noticed this wasn't being fully cached. The Makefile installs the golangci-lint binary to .tmp/golangci-lint via GOBIN, then creates a versioned symlink at .tmp/golangci-lint-. The previous cache path only matched the symlink glob, leaving the actual binary uncached and requiring a fresh install on every run. Ref: https://github.com/bufbuild/plugins/actions/runs/24997932372/job/73199781628#step:13:13 --- .github/workflows/pr.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index da2e29967..f24f03d07 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -72,7 +72,9 @@ jobs: - name: Cache golangci-lint uses: actions/cache@v5 with: - path: .tmp/golangci-lint-* + path: | + .tmp/golangci-lint + .tmp/golangci-lint-* key: golangci-lint-${{ runner.os }}-${{ hashFiles('Makefile') }} - name: Lint run: make lint