pipamc / go-tour

Automatically exported from code.google.com/p/go-tour
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

go get returns "x509: failed to load system roots and no roots provided" #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow the instructions on the top page to get the gotour locally: "go get 
code.google.com/p/go-tour/gotour" on a Mac
2.
3.

What is the expected output? What do you see instead?
Expect the tour to be downloaded, instead:
package code.google.com/p/go-tour/gotour: Get 
https://code.google.com/p/go-tour/source/checkout?repo=: x509: failed to load 
system roots and no roots provided

What version of the product are you using? On what operating system?
go version go1.1 darwin/amd64
Max OS X 10.7.5

Please provide any additional information below.
Mercurial is installed.

Original issue reported on code.google.com by mojo...@gmail.com on 30 Jul 2013 at 8:28

GoogleCodeExporter commented 9 years ago
Did you install Go from a binary distribution or from source? If the latter, 
did you disable cgo? Under OS X you need to compile Go with cgo (the default) 
to access the system root certificates.

Original comment by a...@golang.org on 31 Jul 2013 at 6:08

GoogleCodeExporter commented 9 years ago
I installed from a package named go1.1.darwin-amd64.pkg, which presumably is a 
binary distribution. So presumably getting the tour won't work unless I build 
from source? I'll have to research what "cgo" is.

Original comment by mojo...@gmail.com on 31 Jul 2013 at 3:44

GoogleCodeExporter commented 9 years ago
No, if you installed the binary distribution then the tour should just work. 
Let me think.

Original comment by a...@golang.org on 31 Jul 2013 at 11:52

GoogleCodeExporter commented 9 years ago
Now I recall that I built it from source so I could cross-compile Linux. So 
sorry! So I need to do that again with CGO somehow enabled? Whatever that is?

Original comment by jonem...@apps.disney.com on 8 Aug 2013 at 7:15

GoogleCodeExporter commented 9 years ago
Are you the same person as the original reporter? If so, marking as invalid 
("retracted").

CGO is a mechanism for Go programs to talk to C code. It is used by the 
standard library to do various system-specific things, including fetching the 
SSL root certificates.

To recompile with CGO enabled, run all.bash from the src directory without any 
GO* environment variables set.

Original comment by a...@golang.org on 12 Aug 2013 at 3:33