This repository was archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
dep: Panic observed on init #1130
Copy link
Copy link
Closed
Labels
Description
Hey folks,
Just noticed dep panic out while I was trying to dep init a repo that was previously managed with glide.
What version of dep are you using (dep version)?
v0.3.0-248-gd3e738d
What dep command did you run?
dep init -v
Getting direct dependencies...
Checked 6 directories for packages.
Found 8 direct dependencies.
Importing configuration from glide. These are only initial constraints, and are further refined during the solve process.
Detected glide configuration files...
Loading <path/to/gopath/repo>/glide.yaml
Loading <path/to/gopath/repo>/glide.lock
Converting from glide.yaml and glide.lock...
Using ^1.3.0 as initial constraint for imported dep github.com/gorilla/mux
Using * as initial constraint for imported dep github.com/hashicorp/logutils
Using ^3.0.0 as initial constraint for imported dep github.com/dgrijalva/jwt-go
Using ^1.1.0 as initial constraint for imported dep github.com/satori/go.uuid
Using ^1.0.0 as initial constraint for imported dep github.com/garyburd/redigo
Using * as initial constraint for imported dep github.com/emicklei/forest
Using * as initial constraint for imported dep github.com/wsxiaoys/terminal
Using * as initial constraint for imported dep gopkg.in/xmlpath.v2
Using * as initial constraint for imported dep golang.org/x/net
Using * as initial constraint for imported dep github.com/stretchr/testify
Using * as initial constraint for imported dep github.com/davecgh/go-spew
Using * as initial constraint for imported dep github.com/pmezard/go-difflib
Using ^1.8.4 as initial constraint for imported dep github.com/aws/aws-sdk-go
Trying * (95125df) as initial lock for imported dep github.com/emicklei/forest
Trying * (95125df) as initial lock for imported dep github.com/go-ini/ini
Trying * (95125df) as initial lock for imported dep github.com/gorilla/context
Trying * (95125df) as initial lock for imported dep github.com/hashicorp/logutils
Trying * (95125df) as initial lock for imported dep github.com/jmespath/go-jmespath
Trying * (95125df) as initial lock for imported dep github.com/stretchr/testify
Trying * (95125df) as initial lock for imported dep github.com/wsxiaoys/terminal
Trying * (95125df) as initial lock for imported dep golang.org/x/net
Trying * (95125df) as initial lock for imported dep gopkg.in/xmlpath.v2
Root project is "<path/to/gopath/repo>"
1 transitively valid internal packages
14 external packages imported from 8 projects
(0) ✓ select (root)
panic: Unknown version type <nil>
goroutine 136 [running]:
github.com/golang/dep/internal/gps.(*singleSourceCacheMemory).toRevision(0xc4201f4c00, 0x0, 0x0, 0x1028e3e, 0xc400000008, 0xc420353140)
/Users/simar/go/src/github.com/golang/dep/internal/gps/source_cache.go:200 +0x270
github.com/golang/dep/internal/gps.(*sourceGateway).convertToRevision(0xc4200749c0, 0x16e0900, 0xc420018718, 0x0, 0x0, 0x14dc03d, 0xc4205afe30, 0x1029506, 0xc420042de0)
/Users/simar/go/src/github.com/golang/dep/internal/gps/source.go:392 +0x52
github.com/golang/dep/internal/gps.(*sourceGateway).listPackages(0xc4200749c0, 0x16e0900, 0xc420018718, 0xc4202c80a0, 0x1d, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/simar/go/src/github.com/golang/dep/internal/gps/source.go:329 +0x126
github.com/golang/dep/internal/gps.(*SourceMgr).ListPackages(0xc420075440, 0xc4202c80a0, 0x1d, 0x0, 0x0, 0x0, 0x0, 0x3731656134343036, 0x3565633434666666, 0x3536326437383339, ...)
/Users/simar/go/src/github.com/golang/dep/internal/gps/source_manager.go:403 +0x14d
github.com/golang/dep/internal/gps.(*bridge).breakLock.func1(0xc4203edb00, 0xc4202c80a0, 0x1d, 0x0, 0x0, 0x0, 0x0)
/Users/simar/go/src/github.com/golang/dep/internal/gps/bridge.go:213 +0xc9
created by github.com/golang/dep/internal/gps.(*bridge).breakLock
/Users/simar/go/src/github.com/golang/dep/internal/gps/bridge.go:214 +0x240
What did you expect to see?
dep init working without a panic and setting up dependencies as expected.
What did you see instead?
dep panicking.
panic: Unknown version type <nil>
goroutine 136 [running]:
github.com/golang/dep/internal/gps.(*singleSourceCacheMemory).toRevision(0xc4201f4c00, 0x0, 0x0, 0x1028e3e, 0xc400000008, 0xc420353140)
/Users/simar/go/src/github.com/golang/dep/internal/gps/source_cache.go:200 +0x270
github.com/golang/dep/internal/gps.(*sourceGateway).convertToRevision(0xc4200749c0, 0x16e0900, 0xc420018718, 0x0, 0x0, 0x14dc03d, 0xc4205afe30, 0x1029506, 0xc420042de0)
/Users/simar/go/src/github.com/golang/dep/internal/gps/source.go:392 +0x52
github.com/golang/dep/internal/gps.(*sourceGateway).listPackages(0xc4200749c0, 0x16e0900, 0xc420018718, 0xc4202c80a0, 0x1d, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/simar/go/src/github.com/golang/dep/internal/gps/source.go:329 +0x126
github.com/golang/dep/internal/gps.(*SourceMgr).ListPackages(0xc420075440, 0xc4202c80a0, 0x1d, 0x0, 0x0, 0x0, 0x0, 0x3731656134343036, 0x3565633434666666, 0x3536326437383339, ...)
/Users/simar/go/src/github.com/golang/dep/internal/gps/source_manager.go:403 +0x14d
github.com/golang/dep/internal/gps.(*bridge).breakLock.func1(0xc4203edb00, 0xc4202c80a0, 0x1d, 0x0, 0x0, 0x0, 0x0)
/Users/simar/go/src/github.com/golang/dep/internal/gps/bridge.go:213 +0xc9
created by github.com/golang/dep/internal/gps.(*bridge).breakLock
/Users/simar/go/src/github.com/golang/dep/internal/gps/bridge.go:214 +0x240