https://gist.github.com/kevinbowrin/5f93152fdac23529e06a3a38cde88ce8
Compiling this little program: package main import ( "fmt" "net/http" ) func main() { x, _ := http.NewRequest("GET", "https://google.com", nil) fmt.Println(x) } in the GOPATH works fine. But if it is compiled as a Go 1.11 module outside the GOPATH, the error: exec: "gcc": executable file not found in $PATH is returned. I know I can `CGO_ENABLED=0 go build`. I'm more curious why 'mod-ing' this package causes the change in behavior. Thanks all. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.