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

update go-critic to v0.5.6 #1925

Merged
merged 3 commits into from May 1, 2021
Merged

update go-critic to v0.5.6 #1925

merged 3 commits into from May 1, 2021

Conversation

pierrre
Copy link
Contributor

@pierrre pierrre commented Apr 22, 2021

Fix #1923

@ldez ldez self-requested a review April 22, 2021 12:00
@ldez ldez added the linter: update version Update version of linter label Apr 22, 2021
go.mod Outdated Show resolved Hide resolved
@ldez
Copy link
Member

ldez commented Apr 22, 2021

go-ruleguard uses strconv.ParseComplex, this function was introtuced in go1.15.

Our CI, run with go1.14, go1.15, go1.16, then it's an issue with go1.14.

$ go build -o golangci-lint ./cmd/golangci-lint
go: downloading github.com/go-critic/go-critic v0.5.6
go: downloading github.com/quasilyte/go-ruleguard v0.3.4
# github.com/quasilyte/go-ruleguard/internal/gogrep
Error: ../../../go/pkg/mod/github.com/quasilyte/go-ruleguard@v0.3.4/internal/gogrep/match.go:677:13: undefined: strconv.ParseComplex
note: module requires Go 1.15
make: *** [Makefile:61: golangci-lint] Error 2
Error: Process completed with exit code 2.

@pierrre
Copy link
Contributor Author

pierrre commented Apr 22, 2021

What should we do ?

I look at the previous code, and the older version of go-ruleguard was not using strconv.ParseComplex(). (it was not parsing complex at all)

Is there a problem to update the minimum Go version required for golangci-lint ?
Is it a problem for people who run golangci-lint as a command line ?

@ldez
Copy link
Member

ldez commented Apr 22, 2021

I need time to think about it.

Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

@ldez ldez merged commit 8da9d3a into golangci:master May 1, 2021
@golangci-automator
Copy link

Hey, @pierrre — we just merged your PR to golangci-lint! 🔥🚀

golangci-lint is built by awesome people like you. Let us say “thanks”: we just invited you to join the GolangCI organization on GitHub.
This will add you to our team of maintainers. Accept the invite by visiting this link.

By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.
More information about contributing is here.

Thanks again!

@ldez ldez added this to the v1.40 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linter: update version Update version of linter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gocritic/ruleguard: MatchComment breaks ruleguard
3 participants