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

chore: update go and golanci lint #810

Merged
merged 6 commits into from
Oct 10, 2024
Merged

Conversation

ramonpetgrave64
Copy link
Contributor

This PR updates go to 1.23.1 and updates golanci-lint to v1.61.1, while fixing new lint errors.

Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
@ramonpetgrave64 ramonpetgrave64 requested a review from a team as a code owner October 7, 2024 17:30
.golangci.yml Outdated
@@ -3,7 +3,7 @@ run:
concurrency: 2
deadline: 5m
# For generics.
go: 1.18
# go: 1.23.1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link

Choose a reason for hiding this comment

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

maybe no need to leave version number in here, it won't stay updated

Signed-off-by: Ramon Petgrave <[email protected]>
@ramonpetgrave64
Copy link
Contributor Author

@loosebazooka

.golangci.yml Outdated
@@ -3,7 +3,7 @@ run:
concurrency: 2
deadline: 5m
# For generics.
go: 1.18
# go: 1.23.1
Copy link

Choose a reason for hiding this comment

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

maybe no need to leave version number in here, it won't stay updated

loosebazooka
loosebazooka previously approved these changes Oct 10, 2024
Copy link

@loosebazooka loosebazooka left a comment

Choose a reason for hiding this comment

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

+1 to jku's comment, but LGTM

Signed-off-by: Ramon Petgrave <[email protected]>
@ramonpetgrave64
Copy link
Contributor Author

+1 to jku's comment, but LGTM

removed, please +1 again.

@ramonpetgrave64 ramonpetgrave64 merged commit 4cd7d48 into main Oct 10, 2024
17 checks passed
ramonpetgrave64 added a commit to slsa-framework/slsa-github-generator that referenced this pull request Oct 14, 2024
# Summary

Followup to slsa-framework/slsa-verifier#810

- upgrades to go 1.23.1 and golangci-lint 1.6.1
- makes necessary changes for the linter
  - as of go 1.22, no need to make a copy of the loop variable
  - change non-string use of `fmt.Errorf(err)` to `fmt.Error(err)`

## Testing Process

unit tests continue to pass, as well as the linter

## Checklist

- [x] Review the contributing
[guidelines](https://github.com/slsa-framework/slsa-github-generator/blob/main/CONTRIBUTING.md)
- [x] Add a reference to related issues in the PR description.
- [x] Update documentation if applicable.
- [x] Add unit tests if applicable.
- [x] Add changes to the
[CHANGELOG](https://github.com/slsa-framework/slsa-github-generator/blob/main/CHANGELOG.md)
if applicable.

---------

Signed-off-by: Ramon Petgrave <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants