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

"failed to set up "", error Unable to retrieve local repo information" when doing dep ensure -update #320

@tomwilkie

Description

@tomwilkie

Mac OS X Seirra.

$ dep ensure -update
solve error: No valid source could be created:
	failed to set up "", error Unable to retrieve local repo information	failed to set up "", error Unable to update repository	failed to set up "", error Unable to update repository	failed to set up "", error Unable to update repository
ensure Solve(): No valid source could be created:
	failed to set up "", error Unable to retrieve local repo information	failed to set up "", error Unable to update repository	failed to set up "", error Unable to update repository	failed to set up "", error Unable to update repository

I tried deleting some of the repos in the cache:

$ for dir in $(find $GOPATH/pkg/dep/sources -maxdepth 1); do echo $dir; git -C $dir remote -v; done 
/Users/twilkie/Documents/pkg/dep/sources/git---git.colasdn.top-kr-logfmt
origin  git://github.com/kr/logfmt (fetch)
origin  git://github.com/kr/logfmt (push)
/Users/twilkie/Documents/pkg/dep/sources/git---git.colasdn.top-sercand-kuberesolver
origin  git://github.com/sercand/kuberesolver (fetch)
origin  git://github.com/sercand/kuberesolver (push)
/Users/twilkie/Documents/pkg/dep/sources/git-gopkg.in-inf.v0
origin  git://github.com/go-inf/inf (fetch)
origin  git://github.com/go-inf/inf (push)
...

But then I got:

$ dep ensure --update
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x133ed4c]

goroutine 275 [running]:
github.com/golang/dep/vendor/github.com/sdboyer/gps.(*SourceMgr).SyncSourceFor(0xc420018c00, 0xc4201b4240, 0x10, 0x0, 0x0, 0x0, 0x0)
	/Users/twilkie/Documents/src/github.com/golang/dep/vendor/github.com/sdboyer/gps/source_manager.go:461 +0x10c
github.com/golang/dep/vendor/github.com/sdboyer/gps.(*bridge).breakLock.func1(0xc4203a4f00, 0xc4201b4240, 0x10, 0x0, 0x0, 0x1614200, 0xc4203d0640)
	/Users/twilkie/Documents/src/github.com/golang/dep/vendor/github.com/sdboyer/gps/bridge.go:341 +0x68
created by github.com/golang/dep/vendor/github.com/sdboyer/gps.(*bridge).breakLock
	/Users/twilkie/Documents/src/github.com/golang/dep/vendor/github.com/sdboyer/gps/bridge.go:345 +0x240

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions