diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3729d9a..150ba77 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,7 +5,7 @@ "dockerfile": "Dockerfile", "args": { "GO_VERSION": "1.24.2", - "GOLANGCI_LINT_VERSION": "2.0.2", + "GOLANGCI_LINT_VERSION": "2.1.2", "MIGRATE_VERSION": "4.18.2", "AIR_VERSION": "1.61.7" } diff --git a/.vscode/settings.json b/.vscode/settings.json index d1dcd6f..a8f525a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,7 +7,7 @@ ], "go.formatTool": "custom", "go.alternateTools": { - "customFormatter": "golangci-lint-v2" + "customFormatter": "golangci-lint" }, "go.formatFlags": [ "fmt", diff --git a/build/ci/.lint.yml b/build/ci/.lint.yml index ca446f1..eb88550 100644 --- a/build/ci/.lint.yml +++ b/build/ci/.lint.yml @@ -8,4 +8,4 @@ steps: - apk update - apk add bash curl jq - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.2 - - $(go env GOPATH)/bin/golangci-lint run + - $(go env GOPATH)/bin/golangci-lint run --fast-only --path-mode=abs