tailscale / tailscale

The easiest, most secure way to use WireGuard and 2FA.
https://tailscale.com
BSD 3-Clause "New" or "Revised" License
17.05k stars 1.3k forks source link

tool/gocross: treat empty GOOS/GOARCH as native GOOS/GOARCH #12160

Closed raggi closed 2 weeks ago

raggi commented 2 weeks ago

Tracking down the side effect can otherwise be a pain, for example on Darwin an empty GOOS resulted in CGO being implicitly disabled. The user intended for export GOOS= to act like unset, and while this is a misunderstanding, the main toolchain would treat it this way.

Fixes tailscale/corp#20059