mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-27 08:51:59 +01:00
`make lint-go` ran `go install` and then a bare `golangci-lint` from `PATH`, which fails when `GOBIN` is not in `PATH` and overwrites any `golangci-lint` installed there. It now uses `go run -exec 'env GOOS=<target>'`, which builds golangci-lint for the host and passes the lint target `GOOS` only to golangci-lint. `deps-tools` prebuilds the tools with `go run -exec true` instead of `go install`, because `go install` does not fill the executable cache that `go run` uses. Also drops the unused `TAGS` env and the redundant OS name in `--build-tags`.