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?
my new mirrors.yaml:
repos:
now use dep
Most helpful comment
my new mirrors.yaml:
repos:
repo: https://github.com/golang/crypto
vcs: git
repo: https://github.com/golang/crypto
vcs: git
repo: https://github.com/golang/image
vcs: git
repo: https://github.com/golang/mobile
vcs: git
repo: https://github.com/golang/net
vcs: git
repo: https://github.com/golang/net
base: golang.org/x/net
vcs: git
repo: https://github.com/golang/net
base: golang.org/x/net
vcs: git
repo: https://github.com/golang/sys
vcs: git
repo: https://github.com/golang/sys
base: golang.org/x/sys
vcs: git
repo: https://github.com/golang/text
vcs: git
repo: https://github.com/golang/tools
vcs: git