Skip to content

chore: update go and golanci lint#810

Merged
ramonpetgrave64 merged 6 commits intomainfrom
update-go-golanci-lint
Oct 10, 2024
Merged

chore: update go and golanci lint#810
ramonpetgrave64 merged 6 commits intomainfrom
update-go-golanci-lint

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 <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
@ramonpetgrave64 ramonpetgrave64 requested a review from a team October 7, 2024 17:30
.golangci.yml Outdated
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 <ramon.petgrave64@gmail.com>
@ramonpetgrave64
Copy link
Contributor Author

@loosebazooka

.golangci.yml Outdated
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
Contributor

@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 <32398091+ramonpetgrave64@users.noreply.github.com>
@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
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 <ramon.petgrave64@gmail.com>
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