Skip to content

Commit

Permalink
Merge pull request #1412 from mitch292/mitch292/fix-linting
Browse files Browse the repository at this point in the history
Github actions linter uses golangci-lint@v1.57
  • Loading branch information
mitch292 authored Feb 14, 2025
2 parents 1c1bc0b + dd8f9ef commit 6d2d0b2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [stable, oldstable]
# starting with go 1.24 the GODEBUG=x509sha1=1 flag has been removed.
# many tests rely on sha1 certificates. After resolving #1413 we can
# run these on stable and old stable again.
go: ['1.23', '1.22']
services:
# Label used to access the service container
postgres:
Expand Down Expand Up @@ -76,4 +79,9 @@ jobs:
go-version: 1.18
- name: golangci-lint
uses: golangci/golangci-lint-action@v6

with:
# There is a breaking change in 1.58 that causes the linter not to recognize
# internal imports or standard library imports and results in linting errors
# that cannot be ignored.
# e.g certdb/certdb.go:5:2: could not import encoding/json (Config.Importer.Import(encoding/json) returned nil but no error) (typecheck)
version: v1.57

0 comments on commit 6d2d0b2

Please sign in to comment.