Skip to content
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

Night CI 2025-02-12: Failed #4648

Open
github-actions bot opened this issue Feb 12, 2025 · 1 comment
Open

Night CI 2025-02-12: Failed #4648

github-actions bot opened this issue Feb 12, 2025 · 1 comment
Assignees

Comments

@github-actions
Copy link
Contributor

action url: https://github.com/spidernet-io/spiderpool/actions/runs/13293895117

@cyclinder
Copy link
Collaborator

contrib/scripts/check-go-fmt.sh
format of Go source code is right
contrib/scripts/lock-check.sh
go vet \
    ./cmd/... \
    ./pkg/... \
    ./test/...  \
    ./contrib/...
golangci-lint run
Error: pkg/podownercache/pod_owner_cache_test.go:107:9: SA5011: possible nil pointer dereference (staticcheck)
	if res.OwnerInfo.Namespace != "test-ns" && res.OwnerInfo.Name != "test-deployment" {
	       ^
Error: pkg/podownercache/pod_owner_cache_test.go:104:5: SA5011(related information): this check suggests that the pointer can be nil (staticcheck)
	if res == nil {
	   ^
Error: pkg/podownercache/pod_owner_cache_test.go:126:9: SA5011: possible nil pointer dereference (staticcheck)
	if res.OwnerInfo.Namespace != "test-ns" && res.OwnerInfo.Name != "test-deployment" {
	       ^
Error: pkg/podownercache/pod_owner_cache_test.go:1[23](https://github.com/spidernet-io/spiderpool/actions/runs/13293895117/job/37121070094#step:6:24):5: SA5011(related information): this check suggests that the pointer can be nil (staticcheck)
	if res == nil {
	   ^
make: *** [Makefile:80: lint-golang] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants