|
Hey, |
Replies: 2 comments 16 replies
|
Hi, There is no option, golangci-lint relies on elements it has been compiled for. Golangci-lint is not Go, using You can see examples inside the golangci-lint GitHub action: https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#how-to-use |
|
I think the answer is not true. golangci-lint uses Golang compiler (parser), and it supports "--build-tags" When it lints, there is nothing related to "elements it has been compiled for" Just like you can cross-compile a Go program on Linux for Windows, you can also use golangci-lint to lint "windows" code on Linux, as long as you can make the "Go compiler" have correct tags, the real example is: |
Hi,
There is no option, golangci-lint relies on elements it has been compiled for.
Golangci-lint is not Go, using
GOOS/GOARCHwill not work as expected because of my previous explanation.You can see examples inside the golangci-lint GitHub action: https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#how-to-use