-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
chore(deps): Bump golangci-lint from v1.61.0 to v1.62.0 #16172
Conversation
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.
Thanks @zak-pawel! Can we revert the way we install the linter in CircleCI to what it was before?
.circleci/config.yml
Outdated
command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0 | ||
command: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.0 |
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.
I'm not a fan of this as it opens a security risk because now everyone with write-access to that shell can execute everything in our CircleCI env. Is this really necessary?
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.
Ok, reverted to go install
@@ -31,7 +31,7 @@ func TestOrderedJobsStayOrdered(t *testing.T) { | |||
p.Stop() | |||
|
|||
i := 0 | |||
require.Len(t, acc.Metrics, 20000, fmt.Sprintf("expected 20k metrics but got %d", len(acc.GetTelegrafMetrics()))) | |||
require.Len(t, acc.Metrics, 20000, "expected 20k metrics but got %d", len(acc.GetTelegrafMetrics())) |
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.
I think in this case you need Lenf
, don't you? In any case, I would just remove the message at all as that's what Len
will output anyway.
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.
Message removed.
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.
Removing another message. Thanks for your work @zak-pawel!
Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
(cherry picked from commit 70e1cbc)
Summary
golangci-lint
bumped tov1.62.0
Matching the configuration file to the example from https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml.
revive:max-public-structs
disabled for now because of following isue: Themax-public-structs
rule starts finding many false positives in version1.5.0
mgechev/revive#1103revive
is released and incorporated into newgolangci-lint
releaseNot recommended method of installing
golangci-lint
(from Sources) replaced for CircleCI.lint-install
inMakefile
- developers with Windows most likely will not havecurl
installedNew findings addressed:
Checklist