Keep Go's build cache in check builds (closes #113) #129

Merged
clawbot merged 4 commits from issue-113-keep-go-build-cache into next 2026-10-15 16:50:31 +02:00
Showing only changes of commit d19b604797 - Show all commits
+4 -3
View File
@@ -280,9 +280,10 @@ style conventions are in separate documents:
check builds, and Go reuses one only when all its inputs are unchanged, so
it saves the compile without skipping a check. Nothing else is kept:
golangci-lint's own cache would replay stored findings in place of a lint
run, and the module cache would skip downloading the modules. Go's build
cache also holds test results, which is why both `go test` runs carry
`-count=1`.
run, and Go builds from whatever files a kept module cache holds without
checking them again (only `go mod verify` does), so a file changed there
would go unnoticed. Go's build cache also holds test results, which is why
both `go test` runs carry `-count=1`.
- If the project uses `//go:embed` directives that reference build artifacts
(e.g. a web frontend compiled in a separate stage), the lint phase must
create placeholder files so the embed directives resolve. Example: