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.
Answered by ldez Jun 3, 2025
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.
0 replies
Answer selected by ldez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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.