-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Description
Edit: This first post is mostly irrelevant. See second post and further for more info.
What version of Go are you using (go version
)?
go version go1.8 windows/amd64
What operating system and processor architecture are you using (go env
)?
GOHOSTARCH=amd64
GOHOSTOS=windows
What did you do?
Tried to go get
a specific package:
go get github.com/shibukawa/gui4go
What did you expect to see?
I expected the package to be downloaded and stored in the standard $GOPATH
What did you see instead?
A popup from OpenSSH asking me to confirm that I wanted to connect to github. http://i.imgur.com/xs3N6zM.png I declined out of instinct and it resulted in a panic:
$ go get github.com/shibukawa/gui4go
# github.com/shibukawa/gui4go
panic: bad store type
goroutine 1 [running]:
cmd/compile/internal/amd64.storeByType(0xd597a0, 0xd738e0, 0xa6a920)
c:/go/src/cmd/compile/internal/amd64/ssa.go:76 +0xcf
cmd/compile/internal/amd64.ssaGenValue(0xc0441e3f80, 0xc04349cf20)
c:/go/src/cmd/compile/internal/amd64/ssa.go:699 +0x5aeb
cmd/compile/internal/gc.genssa(0xc0441c7b00, 0xc0420d4238, 0xc0442253b0, 0xc044225420)
c:/go/src/cmd/compile/internal/gc/ssa.go:4422 +0x265
cmd/compile/internal/gc.compile(0xc042e4d950)
c:/go/src/cmd/compile/internal/gc/pgen.go:443 +0x70e
cmd/compile/internal/gc.funccompile(0xc042e4d950)
c:/go/src/cmd/compile/internal/gc/dcl.go:1292 +0xe3
cmd/compile/internal/gc.Main()
c:/go/src/cmd/compile/internal/gc/main.go:464 +0x1f0f
main.main()
c:/go/src/cmd/compile/main.go:50 +0x105
I then cleared the files it had downloaded to $GOPATH and started again.
This time I accepted connecting to github and it downloaded the files again.
$ go get -v github.com/shibukawa/gui4go
github.com/shibukawa/gui4go (download)
github.com/shibukawa/glfw (download)
github.com/shibukawa/glfw-2 (download)
github.com/shibukawa/nanovgo (download)
# cd C:\workspace\Go\src\github.com\shibukawa\nanovgo; git submodule update --init --recursive
Submodule 'gh-pages' ([email protected]:shibukawa/nanovgo.git) registered for path 'gh-pages'
Cloning into 'gh-pages'...
Warning: Permanently added 'github.com,192.30.253.112' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:shibukawa/nanovgo.git' into submodule path 'gh-pages' failed
package github.com/shibukawa/nanovgo: exit status 128
There seems to be an issue with permissions in the repo, which is not something on Go's end. I'll follow up with the author to see how it was set up.
On the Go side of things, this is probably an unusual situation and a minor issue, but the error message for go get
being "panic: bad store type" isn't very descriptive as an end user. Perhaps something could be logged about permissions or the inability to connect to the repository? I'm also not sure why extra permissions needed to be given in the first place. I've had no trouble with any other go github repository I've tried to go get
from.