Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: return an error for unsupported GOOS/GOARCH pair #12272
How about we make cmd/go print "perhaps unsupported platform?" message if some core std packages (runtime, syscall and net?) have build errors? Then we don't nees to maintain a list of supported platforms. or we can detect whether there exists runtime/defs_$GOOS_$GOARCH.go file to see if the platform is supported. (I'm a little sad about the recent duplication of the list of cgo-enabled platforms in cmd/dist. I even want to suggest that we make cmd/dist generate the list for go/build)
It won't help the users if the error message is uncertain, they will end up in the issue tracker or the mailing list to ask about the case.
Maintaining a single source of truth for the supported combinations are rather easy and explicit.