Skip to content

fix(aptre): remove custom golangci-lint stamp on tool invalidation - #55

Merged
paralin merged 1 commit into
masterfrom
fix/aptre-custom-stamp-invalidation
Aug 21, 2026
Merged

fix(aptre): remove custom golangci-lint stamp on tool invalidation#55
paralin merged 1 commit into
masterfrom
fix/aptre-custom-stamp-invalidation

Conversation

@paralin

@paralin paralin commented Aug 21, 2026

Copy link
Copy Markdown
Member

Tool invalidation deleted bin/golangci-lint but kept the custom-build stamp beside it. The next ensureTool run rebuilt the stock binary, and maybeBuildCustomGolangCILint saw a matching stamp and skipped the custom plugin build. Every later golangci-lint invocation then failed to resolve the configured plugin linters until .tools/bin was removed by hand.

This names the stamp path once and removes it together with the tool binaries during invalidation, so a rebuilt binary either matches the stamp or gets a fresh custom build.

TestInvalidateToolBinariesRemovesCustomGolangCIStamp fails against the old invalidation and passes with this change.

Tool invalidation deleted bin/golangci-lint but kept the custom-build
stamp beside it. The next ensureTool run rebuilt the stock binary while
maybeBuildCustomGolangCILint saw a matching stamp and skipped the
custom plugin build, so every golangci-lint invocation failed to
resolve configured plugin linters until .tools/bin was removed by
hand.

Name the stamp path once and remove it together with the tool binaries
during invalidation, so a rebuilt binary either matches the stamp or
gets a fresh custom build.

Signed-off-by: Christian Stewart <christian@aperture.us>
@paralin
paralin merged commit 5178d1c into master Aug 21, 2026
8 checks passed
@paralin
paralin deleted the fix/aptre-custom-stamp-invalidation branch August 21, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant