use on other os (support goos?) #5857
-
Is there a cross-platform solution? For example, when I program on macOS but the compiled binary is intended for Linux or Windows, running golangci-lint directly on macOS results in a bunch of errors about undefined functions due to OS mismatches. My current workaround is to wrap it in Docker and run it via a container. I didn’t find any documentation about setting the target OS. If such an option doesn’t exist, could support for Goenvironment variables (like CGO_ENABLED, GOOS, GOARCH) be considered? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You must use the binary related to your OS. golangci-lint is not Go, so it depends on the operating system it is compiled for. |
Beta Was this translation helpful? Give feedback.
You must use the binary related to your OS.
golangci-lint is not Go, so it depends on the operating system it is compiled for.