-
Notifications
You must be signed in to change notification settings - Fork 129
Pin golangci-lint to v2.4.0 #754
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
Pin golangci-lint to v2.4.0 #754
Conversation
anthony-gomez-fastly
left a comment
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.
Are there any notable changes associated with this bump? is there anything stopping us from going up to the latest release (2.4.0) ?
anthony-gomez-fastly
left a comment
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.
LGTM, do we need to have a changelog entry for this since it's technically a breaking change?
|
Yep, this changes the name of a non-internal package. |
|
Since the CI history for this PR is gone, is there a link I can refer to in order to understand why this package name change was necessary? |
|
@kpfleming the reason for this change is that I gave that package to route requests for I was running a newer version of |
|
In this case I would prefer to silence the 'revive' warning for this package name and just accept that it's not optimal, rather than causing a breaking change and having to adjust all the code which uses these interfaces in go-fastly. |
|
Our code needs more |
@kpfleming since we will introduce a breaking change with the new release due to #755 I would like to move forward with this PR! The changes in terraform are straight forward and we only introduce a breaking change here. I don't want to apply the bad naming into the cli code base for your planed ngwaf work. I would like to avoid silencing the linter. Please reconsider. Thanks! |
|
I'm fine with merging this as-is: normally I would not be willing to make a breaking change just because a linter claims that a package name is 'generic' but no actual problem is caused by that name. I do agree (as I noted in the other PR) that we should keep golangci-lint pinned to a specific version, but have a CI job which lets us evaluate the 'latest' version when we want to and then decide how to accommodate new suggestions/warnings it raises. |
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.
LGTM
Change summary
Bump
golangci-lintfrom v2.1.0 to v2.1.6 and also format the workflow file.All Submissions: