Glide: use mirror from godeps exported with a wrong path

Created on 21 Feb 2017  路  2Comments  路  Source: Masterminds/glide

i getted an gin package from gopkg.in/gin-gonic/gin.v1 use
glide get gopkg.in/gin-gonic/gin.v1
it has an godeps json:
https://github.com/gin-gonic/gin/blob/master/Godeps/Godeps.json
when i build an simple main code:
gopkg.in\gin-gonic\gin.v1\context.go:20:2: cannot find package "golang.org/x/net/context" in any of:
D:\gos\user\src\mana\vendor\golang.org\x\net\context (vendor tree)
D:\gos\go\src\golang.org\x\net\context (from $GOROOT)
D:\gos\project\src\golang.org\x\net\context (from $GOPATH)
D:\gos\user\src\golang.org\x\net\context

i catch the vendor path is wrong
\vendor\golang.org\x\net\context\context\context.go

i see the cache is right
.glide\cache\src\https-github.com-golang-net\context

mirrors.yaml
repos:

if i don't mirror https://golang.org/x/net/context to https://github.com/golang/net
i cant get the source from https://github.com/golang/net
with sub path like "context"|"html"

how to fix https://golang.org/x/net/context package with right path?

Most helpful comment

All 2 comments

now use dep

Was this page helpful?
0 / 5 - 0 ratings