diff --git a/.github/workflows/ci-develop.yml b/.github/workflows/ci-develop.yml index 637bad7..cd3fbc6 100644 --- a/.github/workflows/ci-develop.yml +++ b/.github/workflows/ci-develop.yml @@ -21,13 +21,13 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: ">=1.24.3" + go-version: ">=1.26.3" cache: true - name: Run golangci-lint - uses: golangci/golangci-lint-action@v6 + uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 with: - version: latest + version: v2.12.2 - name: Run tests run: go test ./cmd/osctrld/ -race -coverprofile=coverage.out -v @@ -47,7 +47,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: ">=1.24.3" + go-version: ">=1.26.3" cache: true - name: Run GoReleaser snapshot diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 637a320..7fd5a28 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -21,13 +21,13 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: ">=1.24.3" + go-version: ">=1.26.3" cache: true - name: Run golangci-lint - uses: golangci/golangci-lint-action@v6 + uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 with: - version: latest + version: v2.12.2 - name: Run tests run: go test ./cmd/osctrld/ -race -coverprofile=coverage.out -v @@ -47,7 +47,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: ">=1.24.3" + go-version: ">=1.26.3" cache: true - name: Run GoReleaser snapshot diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 315c1f7..f89af3d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: ">=1.24.3" + go-version: ">=1.26.3" cache: true - name: Run GoReleaser diff --git a/.golangci.yml b/.golangci.yml index 710898b..059dfd6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,16 +1,18 @@ +version: "2" + linters: enable: - govet - errcheck - staticcheck - unused - - gosimple - ineffassign - - typecheck - -linters-settings: - errcheck: - check-type-assertions: true - -issues: - exclude-use-default: true + settings: + errcheck: + check-type-assertions: true + exclusions: + presets: + - comments + - common-false-positives + - legacy + - std-error-handling diff --git a/go.mod b/go.mod index 3e3fb97..f9ec440 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/jmpsec/osctrld -go 1.24.3 +go 1.26.3 require ( github.com/rs/zerolog v1.35.1