-
Notifications
You must be signed in to change notification settings - Fork 651
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
[CI] Tigron breakout: golangci v2 and cleanups #4041
Conversation
- update to golangci v2 - remove dependency on go-imports-reviser (in favor of golangci provided gci) - remove useless tasks - remove hack make-license Signed-off-by: apostasie <[email protected]>
@@ -57,16 +57,16 @@ endef | |||
########################## | |||
# High-level tasks definitions | |||
########################## | |||
lint: lint-go-all lint-imports lint-yaml lint-shell lint-commits lint-headers lint-mod lint-licenses-all |
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.
imports (lint and fix) are now provided by golangci-lint with gci.
Separate tasks and module are no longer necessary.
|
||
########################## | ||
# Linting tasks | ||
########################## | ||
lint-go: | ||
$(call title, $@) | ||
$(call title, $@: $(GOOS)) |
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.
Clarifies output.
@cd $(MAKEFILE_DIR) \ | ||
&& ./hack/make-lint-licenses.sh |
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.
Separate hack is no longer necessary.
7ee1c4a
to
1a15067
Compare
1a15067
to
97d5f43
Compare
- satisfy updated golangci-lint - simplify code - simplify func signatures - enhance documentation a bit Signed-off-by: apostasie <[email protected]>
97d5f43
to
a92e93c
Compare
CI panic logged in #4043 |
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.
Thanks
This upgrades golangci-lint to v2, cleans-up the Makefile a bit, and a few cosmetic cleanups of the codebase in preparation for more drastic changes.