That looks like a certificate issue, as the one mentioned in "Building Docker Images for Static Go Binaries"
The reason for this is that on Linux systems the tls package reads the root CA certificates from
/etc/ssl/certs/ca-certificates.crt, which is missing from the scratch image.
The Contributors app gets around this problem by bundling a copy of the root CA certificates and configuring outbound calls to use them.
So you can check if that
/etc/ssl/certs/ca-certificates.crt is there on your colleague's workstation.
But this bug report suggests:
Just got some clarifications from go-nuts. It's due to cross-compile won't work for loading x509 cert...
the cross-compiler can't use 'cgo' during compilation, but 'cgo' is required to access the root certificate store on Darwin.
I had a similar issue, was solved after copying
crt file from any of these linux distro. for golang to read the file, you have to place the file in the exact same directory.
crypto/x509 will loop over all the possible certificate files.
Another solution involves cross-compiling with "
The bug 8349 shows some progress too with more recent Go.