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

Fix: Go static checks are failing with go version format mismatch with latest staticcheck package #1633

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

priyanshi-yb
Copy link
Contributor

Go Run staticcheck is failing with latest go/tools/cmd/staticcheck package with an error -

go: honnef.co/go/tools/cmd/staticcheck@latest (in honnef.co/go/tools@v0.5.0): go.mod:3: invalid go version '1.22.1': must match format 1.23

which seems to be not working with current go version we use, so restricting the static check package to use the last release before the latest i.e. 2023.1.7

@priyanshi-yb priyanshi-yb changed the title Fix: Go static checks are failing with go version format mismatch with latest staticcheck Fix: Go static checks are failing with go version format mismatch with latest staticcheck package Aug 14, 2024
Copy link
Collaborator

@sanyamsinghal sanyamsinghal left a comment

Choose a reason for hiding this comment

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

LGTM.
Nit: If there is a bug tracking the issue on go repository, also add that to the final commit message.

@@ -36,5 +36,5 @@ jobs:
- name: Run staticcheck
run: |
cd yb-voyager
go install honnef.co/go/tools/cmd/staticcheck@latest
go install honnef.co/go/tools/cmd/staticcheck@2023.1.7
Copy link
Collaborator

Choose a reason for hiding this comment

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

just to confirm: this is second latest release?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, excluding RC release of latest

@priyanshi-yb priyanshi-yb merged commit e2ce970 into main Aug 14, 2024
13 of 15 checks passed
@priyanshi-yb priyanshi-yb deleted the priyanshi/fix-go-static-check branch August 14, 2024 08:25
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