headlamp-k8s / headlamp

A Kubernetes web UI that is fully-featured, user-friendly and extensible
https://headlamp.dev
Apache License 2.0
2.22k stars 156 forks source link

backend: make backend-lint not working on some WSL / Ubuntu setups #1404

Closed illume closed 3 months ago

illume commented 1 year ago

Continuing on from here: https://github.com/headlamp-k8s/headlamp/pull/1379#discussion_r1325657539

This is still showing the problem I had on Linux (WSL).

GOBIN=`pwd`/backend/tools go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2
...
go: downloading github.com/quasilyte/go-ruleguard v0.3.19
go: downloading golang.org/x/exp/typeparams v0.0.0-20230224173230-c95f2b4c22f2
cd backend && ./tools/golangci-lint run
ERRO Running error: context loading failed: no go files to analyze 
make: *** [Makefile:22: backend-lint] Error 5

cc @joaquimrocha

illume commented 3 months ago

make backend-lint works (Pretty sure this is fixed quite some time ago)