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

staticcheck: propagate Go version #4907

Merged
merged 4 commits into from
Aug 14, 2024
Merged

Conversation

ldez
Copy link
Member

@ldez ldez commented Aug 14, 2024

Fixes #4905

This is a kind of temporary workaround, I need to think more about another approach.

Related to dominikh/go-tools@bc9aaa8


Note: when using a previous Go version (ex: go1.22) with a binary built with go1.23, there is an explosion of the memory consumption that leads to a crash (no panic, just the process is terminated by the OS).

I need to investigate more, but for now, this workaround will disable the unexpected old rules (ex: SA3000, SA1003, etc.).

@ldez ldez added the bug Something isn't working label Aug 14, 2024
@ldez ldez added this to the next milestone Aug 14, 2024
@ldez ldez marked this pull request as draft August 14, 2024 12:58
@ldez ldez force-pushed the fix/staticcheck-goversion branch 2 times, most recently from 55f5cf7 to 5699e94 Compare August 14, 2024 16:13
@ldez ldez marked this pull request as ready for review August 14, 2024 16:18
@ldez ldez requested a review from bombsimon August 14, 2024 16:18
@ldez ldez force-pushed the fix/staticcheck-goversion branch 2 times, most recently from cbd414a to 82238d1 Compare August 14, 2024 20:47
@ldez ldez added the linter: update Update the linter implementation inside golangci-lint label Aug 14, 2024
@ldez ldez force-pushed the fix/staticcheck-goversion branch from 82238d1 to c122cb6 Compare August 14, 2024 20:51
@ldez ldez force-pushed the fix/staticcheck-goversion branch from c122cb6 to 28fc300 Compare August 14, 2024 20:57
@ldez ldez merged commit adbdfdb into golangci:master Aug 14, 2024
16 checks passed
@ldez ldez deleted the fix/staticcheck-goversion branch August 14, 2024 21:54
@ldez ldez modified the milestones: next, v1.60 Aug 20, 2024
uudashr pushed a commit to uudashr/golangci-lint that referenced this pull request Sep 18, 2024
@ldez ldez mentioned this pull request Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linter: update Update the linter implementation inside golangci-lint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

golangci-lint 1.60.1 incorrectly reports SA3000: TestMain should call os.Exit
2 participants