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.

gps with nil pointer dereference #1128

@victormn

Description

@victormn

What version of dep are you using (dep version)?

version : devel
build date :
git hash :
go version : go1.9
go compiler : gc
platform : linux/amd64

What dep command did you run?

dep ensure -update

Root project is "bitbucket.org/arquivei/go-dfeadd"
 13 transitively valid internal packages
 28 external packages imported from 13 projects
(0)   ✓ select (root)
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x78 pc=0x755c10]

goroutine 1 [running]:
github.com/golang/dep/internal/gps.(*sourceGateway).sourceURL(0xc4200624e0, 0xb129c0, 0xc420016278, 0x0, 0x0, 0x0, 0x0)
	/home/victor/go/src/github.com/golang/dep/internal/gps/source.go:479 +0x100
github.com/golang/dep/internal/gps.(*sourceCoordinator).getSourceGatewayFor(0xc420322540, 0xb129c0, 0xc420016278, 0xc42001d470, 0x23, 0x0, 0x0, 0x0, 0x0, 0x0)
	/home/victor/go/src/github.com/golang/dep/internal/gps/source.go:161 +0x975
github.com/golang/dep/internal/gps.(*SourceMgr).SourceExists(0xc4202f41e0, 0xc42001d470, 0x23, 0x0, 0x0, 0xc420028000, 0x0, 0x40)
	/home/victor/go/src/github.com/golang/dep/internal/gps/source_manager.go:467 +0x91
github.com/golang/dep/internal/gps.(*bridge).SourceExists(0xc4201da510, 0xc42001d470, 0x23, 0x0, 0x0, 0xc42012ac38, 0xc42012acd8, 0x54011b)
	/home/victor/go/src/github.com/golang/dep/internal/gps/bridge.go:132 +0x93
github.com/golang/dep/internal/gps.(*solver).createVersionQueue(0xc420144200, 0xc42001d470, 0x23, 0x0, 0x0, 0xc42022cf80, 0x8, 0x8, 0x0, 0x0, ...)
	/home/victor/go/src/github.com/golang/dep/internal/gps/solver.go:767 +0xed
github.com/golang/dep/internal/gps.(*solver).solve(0xc420144200, 0x0, 0x0, 0xc4201da3f0)
	/home/victor/go/src/github.com/golang/dep/internal/gps/solver.go:492 +0x4cf
github.com/golang/dep/internal/gps.(*solver).Solve(0xc420144200, 0x34, 0xb10440, 0xb6a488, 0xc42001e0d8)
	/home/victor/go/src/github.com/golang/dep/internal/gps/solver.go:442 +0xaa
main.(*ensureCommand).runUpdate(0xc4201031e0, 0xc420088fa0, 0xc4200100f0, 0x0, 0x0, 0xc420011440, 0xb15480, 0xc4202f41e0, 0xc42001e0c4, 0x34, ...)
	/home/victor/go/src/github.com/golang/dep/cmd/dep/ensure.go:383 +0x8c1
main.(*ensureCommand).Run(0xc4201031e0, 0xc420088fa0, 0xc4200100f0, 0x0, 0x0, 0x0, 0x0)
	/home/victor/go/src/github.com/golang/dep/cmd/dep/ensure.go:188 +0x3ec
main.(*Config).Run(0xc420062f00, 0xc420062f00)
	/home/victor/go/src/github.com/golang/dep/cmd/dep/main.go:159 +0x7a2
main.main()
	/home/victor/go/src/github.com/golang/dep/cmd/dep/main.go:45 +0x1fc

What did you expect to see?

What did you see instead?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions