-
Notifications
You must be signed in to change notification settings - Fork 550
[CI] Migrate to v2 of golangci #3679
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
base: development
Are you sure you want to change the base?
Conversation
…olangi-cli-bump # Conflicts: # pkg/functionconfig/types.go # pkg/processor/runtime/rpc/result/result.go
.golangci.yml
Outdated
- vendor | ||
- third_party$ | ||
- builtin$ |
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.
Are those needed? they're non-existent paths
.golangci.yml
Outdated
- third_party$ | ||
- builtin$ | ||
- examples$ |
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.
same here
@@ -692,9 +692,9 @@ ensure-test-files-annotated: | |||
@echo "All go test files have //go:build test_X annotation" | |||
@exit $(.SHELLSTATUS) | |||
|
|||
GOLANGCI_LINT_VERSION := v1.64.6 | |||
GOLANGCI_LINT_VERSION := 2.2.0 |
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.
I also noticed some issues with this v
.
I suggest also removing it in the the awk
command (Line 705):
installed_version=$$($(GOLANGCI_LINT_BIN) version | awk '/version/ {print $$4}' | sed 's/^v//'); \
pkg/functionconfig/handler.go
Outdated
@@ -36,6 +36,6 @@ func ParseHandler(handler string) (string, string, error) { | |||
return moduleAndEntrypoint[0], moduleAndEntrypoint[1], nil | |||
|
|||
default: | |||
return "", "", fmt.Errorf("Invalid handler name %s", handler) | |||
return "", "", fmt.Errorf("invalid handler name %s", handler) |
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.
8000return "", "", fmt.Errorf("invalid handler name %s", handler) | |
return "", "", errors.Errorf("Invalid handler name %s", handler) |
# timeout for analysis | ||
timeout: 5m |
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.
why is the timeout removed?
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.
seem to be issue with auto migration, will revert it
Migrate to v2 of golangci