Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Conversation

attiasas
Copy link
Contributor

@attiasas attiasas commented Jul 4, 2024

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.

Adding support to Go v1.22+
This change raises the minimum Go version to v1.18

@attiasas attiasas requested a review from yahavi July 7, 2024 07:13
@attiasas attiasas changed the base branch from main to dev July 7, 2024 07:16
Copy link

github-actions bot commented Jul 7, 2024

👍 Frogbot scanned this pull request and did not find any new security issues.


@@ -22,11 +10,12 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.17.x
go-version: 1.20.x
Copy link
Member

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"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't that work?

Suggested change
go: ["1.18", "1.19", "1.22.3"]
go: ["1.18", "1.19", "1.22"]

@@ -0,0 +1,2 @@
module test-module
go 1.12
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
go 1.12
go 1.18

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:
Copy link
Member

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

@attiasas attiasas changed the base branch from dev to main July 7, 2024 11:16
@attiasas
Copy link
Contributor Author

attiasas commented Jul 7, 2024

duplicate with: #6

@attiasas attiasas closed this Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants