net: GODEBUG=netdns=cgo doesn't override netgo build tag #57203
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?(this is Prometheus, cross compiled from linux)
Does this issue reproduce with the latest release?
yes
What did you do?
Used GODEBUG=netdns=cgo
https://gist.github.com/roidelapluie/8a87428055a77bfc3a08dc427e595599
What did you expect to see?
Using C for DNS, because the C library routines are always available on Windows.
What did you see instead?
It is using the cgo resolved, which fails to resolve e.g. localhost.
The text was updated successfully, but these errors were encountered: