Re:Go 1.16 will make system calls through Libc on OpenBSD
by yencabulator on Tuesday February 02, 2021 @07:51PM
(#26009254)
If cgo is enabled (the usual case), Go uses libc for DNS if the configuration looks exotic enough that the pure-Go code wouldn't give the same results.
Re:Go 1.16 will make system calls through Libc on OpenBSD
by ArchOversight on Wednesday February 03, 2021 @02:05PM
(#26017689)
This is a long standing issue in various open source projects that use Go, where they want to ship static binaries.
Most recently, this happened with Concourse and it's Fly binary: https://github.com/concourse/concourse/issues/3691
The developers don't want to use CGO, or when they do use CGO they disable the net part... and now stuff doesn't work.
Projects have to specifically build with cgo enabled on macOS, or else it fails.
That leaves users annoyed, because sending all DNS into a VPN tunnel is not always an option.