This commit is contained in:
Philip Peterson 2026-08-25 15:08:32 -08:00
parent fe4b32b902
commit dcba580ba7

View file

@ -42,7 +42,10 @@ func (m *Quintodrome) LintGo(ctx context.Context, src *dagger.Directory) error {
_, err := goContainer(). _, err := goContainer().
WithDirectory("/repo", src). WithDirectory("/repo", src).
WithWorkdir("/repo"). WithWorkdir("/repo").
WithExec([]string{"sh", "-c", "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin"}). // Fetch the release tarball directly instead of the install script,
// whose hardcoded SHA256 for v2.12.0 doesn't match the re-uploaded
// release tarball.
WithExec([]string{"sh", "-c", "curl -sSfL https://github.com/golangci/golangci-lint/releases/download/v2.12.0/golangci-lint-2.12.0-linux-amd64.tar.gz | tar -xz --strip-components=1 -C /usr/local/bin"}).
WithExec([]string{"golangci-lint", "run", "--timeout", "2m"}). WithExec([]string{"golangci-lint", "run", "--timeout", "2m"}).
Sync(ctx) Sync(ctx)
return err return err