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

dep init panic on CTRL-C #359

Closed
pierrec opened this issue Mar 31, 2017 · 1 comment
Closed

dep init panic on CTRL-C #359

pierrec opened this issue Mar 31, 2017 · 1 comment

Comments

@pierrec
Copy link

pierrec commented Mar 31, 2017

What version of Go are you using (go version)?
What operating system and processor architecture are you using?
go version go1.8 darwin/amd64

What did you do?
dep init
shortly followed by CTRL-C

What did you expect to see?
dep graceful exit

What did you see instead?

Cached github.com/elazarl/go-bindata-assetfs
Cached github.com/abiosoft/ishell
Cached github.com/gorilla/handlers
Cached github.com/knq/dburl
^CSignal received: waiting for 21 ops to complete...
Unable to cache github.com/pkg/errors
Unable to cache gopkg.in/rana/ora.v4
Unable to cache gopkg.in/cheggaaa/pb.v1
Unable to cache github.com/spf13/cobra
Unable to cache gopkg.in/readline.v1
Unable to cache github.com/mattn/go-isatty
Unable to cache github.com/emicklei/go-restful
Unable to cache github.com/spf13/pflag
Unable to cache github.com/gorilla/mux
Unable to cache github.com/inconshreveable/mousetrap
Unable to cache github.com/lib/pq
Unable to cache github.com/denisenkom/go-mssqldb
Unable to cache github.com/spf13/viper
Unable to cache github.com/go-sql-driver/mysql
Unable to cache github.com/flynn-archive/go-shlex
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x133ed2c]

goroutine 280 [running]:
github.com/golang/dep/vendor/github.com/sdboyer/gps.(*SourceMgr).SyncSourceFor(0xc420a000c0, 0xc420bbc280, 0x10, 0x0, 0x0, 0x0, 0x0)
	/Users/pierrec/sandbox/src/github.com/golang/dep/vendor/github.com/sdboyer/gps/source_manager.go:461 +0x10c
main.getProjectData.func1(0xc420bbc280, 0x10, 0xc420a000c0)
	/Users/pierrec/sandbox/src/github.com/golang/dep/cmd/dep/init.go:226 +0x6c
created by main.getProjectData.func2
	/Users/pierrec/sandbox/src/github.com/golang/dep/cmd/dep/init.go:377 +0x8ee
@sdboyer
Copy link
Member

sdboyer commented Mar 31, 2017

Thanks for the report! Sorry you ran into that. It's fixed upstream, we just haven't integrated latest gps in a while. See e.g. #250.

(The panic here is actually unrelated to the CTRL-C)

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

No branches or pull requests

2 participants