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: golangci-lint failures when tested against Go 1.20 #457

Merged

Conversation

rdimitrov
Copy link
Contributor

@rdimitrov rdimitrov commented Feb 7, 2023

The following PR fixes the CI issues around Go 1.20 by updating the version of golangci-lint. It also removes the unnecessary version pin in its config file.

The reason this has to be done manually is Dependabot takes care of updating the action, but the golangci-lint version has to be manually pinned because of our testing scenarios. For reference - https://github.com/golangci/golangci-lint-action/blob/6a290f7d5d488e1e423b0b37fe802c822ca2c08c/README.md?plain=1#L108

Signed-off-by: Radoslav Dimitrov dimitrovr@vmware.com

Please fill in the fields below to submit a pull request. The more information that is provided, the better.

Fixes #455
Related to #454

Release Notes:

Types of changes:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected). Please ensure that your PR title is a Conventional Commit breaking change (with a !, as in feat!: change foo).

Description of the changes being introduced by the pull request:

Please verify and check that the pull request fulfills the following requirements:

  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
@rdimitrov rdimitrov self-assigned this Feb 7, 2023
@znewman01 znewman01 merged commit 5a019c3 into theupdateframework:master Feb 7, 2023
@rdimitrov rdimitrov deleted the dimitrovr/golangci-lint-fix branch February 7, 2023 18:31
znewman01 pushed a commit to znewman01/go-tuf that referenced this pull request May 22, 2023
…mework#457)

fix: golangci-lint failed when tested against Go 1.20

Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

chore: Update the code base to be Go 1.20 compliant
3 participants