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

dep panic #2041

Closed
wrfly opened this issue Oct 25, 2018 · 2 comments
Closed

dep panic #2041

wrfly opened this issue Oct 25, 2018 · 2 comments

Comments

@wrfly
Copy link

wrfly commented Oct 25, 2018

s.fail(s.sel.getDependenciesOn(q.id)[0].depender.id)

panic: runtime error: index out of range

goroutine 1 [running]:
github.com/golang/dep/gps.(*solver).findValidVersion(0xc4201ca200, 0xc420f3e1e0, 0xc4201c3300, 0x2, 0x2, 0x0, 0xc4201c3300)
        /Users/shaun.fu/go/src/github.com/golang/dep/gps/solver.go:945 +0x4b9
github.com/golang/dep/gps.(*solver).backtrack(0xc4201ca200, 0x15fcb20, 0xc420022298, 0x0, 0x0, 0x0)
        /Users/shaun.fu/go/src/github.com/golang/dep/gps/solver.go:1079 +0xc5e
github.com/golang/dep/gps.(*solver).solve(0xc4201ca200, 0x15fcb20, 0xc420022298, 0x139a253, 0x15060e0, 0xc4202b08f0)
        /Users/shaun.fu/go/src/github.com/golang/dep/gps/solver.go:566 +0x43c
github.com/golang/dep/gps.(*solver).Solve(0xc4201ca200, 0x15fcb20, 0xc420022298, 0x1875f80, 0xc42002a01b, 0x23, 0xc420347cb0)
        /Users/shaun.fu/go/src/github.com/golang/dep/gps/solver.go:440 +0xc8
main.(*ensureCommand).runDefault(0xc420181a10, 0xc4200c2980, 0xc42019a7d0, 0x0, 0x0, 0xc4200e0090, 0x1600ac0, 0xc42008e900, 0xc42002a004, 0x3a, ...)
        /Users/shaun.fu/go/src/github.com/golang/dep/cmd/dep/ensure.go:281 +0x361
main.(*ensureCommand).Run(0xc420181a10, 0xc4200c2980, 0xc42019a7d0, 0x0, 0x0, 0x0, 0x0)
        /Users/shaun.fu/go/src/github.com/golang/dep/cmd/dep/ensure.go:218 +0x865
main.(*Config).Run(0xc42008efc0, 0x0)
        /Users/shaun.fu/go/src/github.com/golang/dep/cmd/dep/main.go:212 +0xfae
main.main()
        /Users/shaun.fu/go/src/github.com/golang/dep/cmd/dep/main.go:84 +0x54d
make: *** [dep] Error 2

Maybe we should check here?

if ds := s.sel.getDependenciesOn(q.id); len(ds) != 0 {
	s.fail(ds[0].depender.id)
}
@EtienneM
Copy link

Seems like a duplicate of #1437. Should probably be closed.

@mvdan
Copy link
Member

mvdan commented Sep 4, 2020

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!

@mvdan mvdan closed this as completed Sep 4, 2020
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

3 participants