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.

panic on gopkg.in .v0 imports #933

Closed
@daenney

Description

@daenney

What version of Go (go version) and dep (git describe --tags) are you using?

[I] 13:21:22 ~/D/g/s/g/d/testboom $ go version
go version go1.8.3 darwin/amd64

[I] 13:23:56 ~/D/g/s/g/g/dep (master) $ git describe --tags
v0.1.0-313-g44a454b

What dep command did you run?

dep init -v

Root project is "github.com/daenney/testboom"
 1 transitively valid internal packages
 1 external packages imported from 1 projects
(0)   ✓ select (root)
(1)	? attempt gopkg.in/go-ldap/ldif.v0 with 1 pkgs; 0 versions to try
panic: version queue is empty, should not happen

goroutine 1 [running]:
github.com/golang/dep/internal/gps.(*solver).findValidVersion(0xc42016eb00, 0xc4201de1e0, 0xc420153fe0, 0x1, 0x1, 0x0, 0xc420153fe0)
	/Users/daenney/Development/go/src/github.com/golang/dep/internal/gps/solver.go:845 +0x5fa
github.com/golang/dep/internal/gps.(*solver).createVersionQueue(0xc42016eb00, 0xc420180b01, 0x18, 0x0, 0x0, 0xc420153fe0, 0x1, 0x1, 0x0, 0x0, ...)
	/Users/daenney/Development/go/src/github.com/golang/dep/internal/gps/solver.go:832 +0xace
github.com/golang/dep/internal/gps.(*solver).solve(0xc42016eb00, 0x0, 0x0, 0xc42019a0f0)
	/Users/daenney/Development/go/src/github.com/golang/dep/internal/gps/solver.go:449 +0x471
github.com/golang/dep/internal/gps.(*solver).Solve(0xc42016eb00, 0x3d, 0x16ce440, 0xc42019a030, 0xc4200140c6)
	/Users/daenney/Development/go/src/github.com/golang/dep/internal/gps/solver.go:399 +0xb1
main.(*initCommand).Run(0xc420153a6a, 0xc420015950, 0xc420010470, 0x0, 0x0, 0x0, 0x0)
	/Users/daenney/Development/go/src/github.com/golang/dep/cmd/dep/init.go:172 +0x710
main.(*Config).Run(0xc42001b080, 0xc42001b080)
	/Users/daenney/Development/go/src/github.com/golang/dep/cmd/dep/main.go:158 +0x876
main.main()
	/Users/daenney/Development/go/src/github.com/golang/dep/cmd/dep/main.go:45 +0x253

What did you expect to see?

An error informing me that .v0 URLs aren't really useful and just use https://github.com/go-ldap/ldif directly or it working as expected.

What did you see instead?

A panic.

Reproduce:

[I] 13:24:17 ~/D/g/s/g/d/testboom $ pwd
/Users/daenney/Development/go/src/github.com/daenney/testboom

[I] 13:25:24 ~/D/g/s/g/d/testboom $ cat main.go
package main

import (
	"gopkg.in/go-ldap/ldif.v0"
)

func main() {
	l := &ldif.LDIF{}
	print(l)
}

[I] 13:25:36 ~/D/g/s/g/d/testboom $ dep init -v
Root project is "github.com/daenney/testboom"
...

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