certificates
certificates copied to clipboard
Create CGO binary release artifacts where it makes sense
- Darwin and Windows CGO builds may Just Work for most people
- For Darwin, enabling CGO will result in
step-causing the macOS system DNS resolver, which is a Good Thing
Questions:
- Would it make sense for Darwin and WIndows CGO builds to replace the non-CGO binaries? What are the tradeoffs?
- What about on Linux?
- Enabling CGO on a generic Linux build may be fraught, because of the dependencies it creates on libc—which could vary a lot by distribution.
- Might be better to depend on the downstream OS packagers to provide CGO builds for their distribution.
Oh, it looks like the real challenge for CGO support is GoReleaser. GoReleaser isn't really designed for CGO programs, and apparently it makes things a lot messier if you try to add support for CGO builds to a project.
https://goreleaser.com/limitations/cgo/