-
Notifications
You must be signed in to change notification settings - Fork 1
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
misc: update golangci-lint and use cached action #35
Conversation
6a74ba8
to
db6b7a2
Compare
Do you want to merge the other PR as-is, @hanssto, and then we can rebase and merge this one? It looks like it'd be nice to have the full history for these smaller changes. |
I'm torn between "I shouldn't spend more time on this" and "I should rework the other PR so that it's more sane in the event of us ever merging this back upstream". I will let tomorrow-me decide as I have to pick up the spawn. |
My suggestion is, @hanssto:
Au voila. |
We have a critical security update on Docker auth, which is an indirect dependency of the test code (seemingly via oras). This is the culmination of different attempts at upgrading without having to make substantial changes to the sloth source code. Some notes: * Upgrading go-helm-template (also made by slok) in test ultimately requires at least Go 1.22. * The GH actions uses the root go.mod Go version, so these need to be synced. * The next version of reloader, also made by slok, requires 1.23, so both root and test needs to be on 1.23. * Updated the dev and prod Dockerfiles to match the go version. * Upgraded most dependencies to get as far as possible. * Keeping Prometheus-related deps as certain newer versions don't work with the code. There might be further version jumps we can do here. This results in errors on lint which are addressed in #35.
e1c5f6e
to
776c994
Compare
We have a critical security update on Docker auth, which is an indirect dependency of the test code (seemingly via oras). This is the culmination of different attempts at upgrading without having to make substantial changes to the sloth source code. Some notes: * Upgrading go-helm-template (also made by slok) in test ultimately requires at least Go 1.22. * The GH actions uses the root go.mod Go version, so these need to be synced. * The next version of reloader, also made by slok, requires 1.23, so both root and test needs to be on 1.23. * Updated the dev and prod Dockerfiles to match the go version. * Upgraded most dependencies to get as far as possible. * Keeping Prometheus-related deps as certain newer versions don't work with the code. There might be further version jumps we can do here. This results in errors on lint which are addressed in #35.
Default configuration has no rules for depguard, let's not enable it when it doesn't help us.
21ce7a8
to
fba8e97
Compare
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, and so green.
Disable depguard as it's unconfigured and ignore the noop logger for unused parameters.