8000 [CI] Migrate to v2 of golangci by rokatyy · Pull Request #3679 · nuclio/nuclio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[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

Open
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

rokatyy
Copy link
Contributor
@rokatyy rokatyy commented Jul 1, 2025

Migrate to v2 of golangci

rokatyy added 3 commits July 1, 2025 13:29
…olangi-cli-bump

# Conflicts:
#	pkg/functionconfig/types.go
#	pkg/processor/runtime/rpc/result/result.go
@rokatyy rokatyy marked this pull request as ready for review July 1, 2025 14:08
.golangci.yml Outdated
Comment on lines 69 to 71
- vendor
- third_party$
- builtin$
Copy link
Contributor

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
Comment on lines 91 to 93
- third_party$
- builtin$
- examples$
Copy link
Contributor

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
Copy link
Contributor

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//'); \

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

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

8000
Suggested change
return "", "", fmt.Errorf("invalid handler name %s", handler)
return "", "", errors.Errorf("Invalid handler name %s", handler)

Comment on lines -35 to -36
# timeout for analysis
timeout: 5m
Copy link
Contributor

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?

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
0