certificates icon indicating copy to clipboard operation
certificates copied to clipboard

Create CGO binary release artifacts where it makes sense

Open tashian opened this issue 3 years ago • 1 comments

  • Darwin and Windows CGO builds may Just Work for most people
  • For Darwin, enabling CGO will result in step-ca using 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.

tashian avatar May 11 '22 17:05 tashian

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/

tashian avatar May 11 '22 18:05 tashian