Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

gps panics if it is unable to determine repository type #817

Closed
matjam opened this issue Jul 15, 2017 · 2 comments
Closed

gps panics if it is unable to determine repository type #817

matjam opened this issue Jul 15, 2017 · 2 comments

Comments

@matjam
Copy link
Contributor

matjam commented Jul 15, 2017

What version of Go (go version) and dep (git describe --tags) are you using?

go version go1.8.3 darwin/amd64
v0.1.0-215-g911cd22

What dep command did you run?

carbon:cmpc synpacket$ dep ensure -update
panic: shouldn't be possible unable to deduce repository and source type for "cloudmark.com/nollerenshaw/coolthing": unable to read metadata: go-import metadata not found

goroutine 1 [running]:
github.com/golang/dep/internal/gps.(*solver).selectRoot(0xc420068100, 0xc4201e61b0, 0xc4201e61e0)
	/Users/synpacket/Development/go/src/github.com/golang/dep/internal/gps/solver.go:549 +0xada
github.com/golang/dep/internal/gps.(*solver).Solve(0xc420068100, 0x43, 0x16be280, 0x170c2a8, 0xc4200180c8)
	/Users/synpacket/Development/go/src/github.com/golang/dep/internal/gps/solver.go:394 +0x8d
main.(*ensureCommand).Run(0xc420157780, 0xc42008d6d0, 0xc4200761a0, 0x0, 0x0, 0x0, 0x0)
	/Users/synpacket/Development/go/src/github.com/golang/dep/cmd/dep/ensure.go:148 +0x375
main.(*Config).Run(0xc42006efc0, 0xc42006efc0)
	/Users/synpacket/Development/go/src/github.com/golang/dep/cmd/dep/main.go:158 +0x876
main.main()
	/Users/synpacket/Development/go/src/github.com/golang/dep/cmd/dep/main.go:45 +0x253

What did you expect to see?

not a panic.

Maybe a helpful, "unable to determine the type of source cloudmark.com."

What did you see instead?

a panic :-(

@matjam
Copy link
Contributor Author

matjam commented Jul 15, 2017

it should be noted that I'm an idiot; the source is actually a different hostname. So this is unrelated to lack of being able to authenticate; rather it's probably getting a 404.

@sdboyer
Copy link
Member

sdboyer commented Jul 21, 2017

Improving feedback from this particular error case is basically the focus of #697 - closing this as dup. (thanks, though!)

@sdboyer sdboyer closed this as completed Jul 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants