-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatible with Go v1.22+ #5
Conversation
.github/workflows/analysis.yml
Outdated
@@ -22,11 +10,12 @@ jobs: | |||
- name: Install Go | |||
uses: actions/setup-go@v3 | |||
with: | |||
go-version: 1.17.x | |||
go-version: 1.20.x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not 18?
@@ -9,7 +9,7 @@ jobs: | |||
fail-fast: false | |||
matrix: | |||
os: [ubuntu-latest, windows-latest, macOS-latest] | |||
go: ["1.16", "1.17", "1.18", "1.19"] | |||
go: ["1.18", "1.19", "1.22.3"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't that work?
go: ["1.18", "1.19", "1.22.3"] | |
go: ["1.18", "1.19", "1.22"] |
testdata/version/minor/go.mod
Outdated
@@ -0,0 +1,2 @@ | |||
module test-module | |||
go 1.12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go 1.12 | |
go 1.18 |
.github/workflows/analysis.yml
Outdated
with: | ||
install-go: false | ||
args: | | ||
--timeout 5m --out-${NO_FUTURE}format colored-line-number --enable errcheck,gosimple,govet,ineffassign,staticcheck,typecheck,unused,gocritic,asasalint,asciicheck,errchkjson,exportloopref,forcetypeassert,makezero,nilerr,unparam,unconvert,wastedassign,usestdlibvars | ||
Go-Sec: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can simply add "gosec" to the golangci-lint-action
duplicate with: #6 |
Adding support to Go
v1.22+
This change raises the minimum Go version to
v1.18