go version) and dep (git describe --tags) are you using?$ go version
go version go1.8 windows/386
$ git describe --tags
v0.1.0-175-gc79b048
I first run dep init -v. Here the files:
Dep automatically choose the default branch of Gin project (master), but I need develop. So I changed Gopkg.toml from:
[[constraint]]
name = "github.com/gin-gonic/gin"
version = "1.1.4"
To:
[[constraint]]
branch = "develop"
name = "github.com/gin-gonic/gin"
Then I runned dep ensure and got the panic.
Seems like the root problem is that https://github.com/gin-contrib/sse doesn't have any tags or branches with version names. dep isn't handling gopkg.in's Version Zero correctly, which should resolve to the default branch.
I'm going to work on this (and #777) as they are both related to how we sort/resolve gopkg.in versions.
@carolynvs Is this resolved by #1053?
Nice catch, yes it has! dep now picks the default branch instead of panicing:
(44) ? attempt github.com/gin-contrib/sse with 1 pkgs; 1 versions to try
(47) try github.com/gin-contrib/sse@master
(47) ✓ select github.com/gin-contrib/sse@master w/1 pkgs
phew, I saw this come up in my notifications and thought we had a regression 😅
I screwed up validating this was fixed (I used github.com instead of gopkg.in in the import path). Reopening...
hi there,
any eta fixing the issue?
Most helpful comment
hi there,
any eta fixing the issue?