This is a creation in Article, where the information may have evolved or changed.
Objective
If you are using Golang
the DEP tool, I believe you may encounter this problem
DEP version
$ dep versiondep: version : devel build date : git hash : go version : go1.10 go compiler : gc platform : linux/amd64
Latest release
is currentlyv0.4.1
Problem
dep
when using the package management tool, either execution dep init -v
ordep ensure
Always report no more versions
an issue with version errors (, no versions
)
$ dep ensureSolving failure: No versions of xxxx met constraints: master: unable to update checked out version: fatal: reference is not a tree: 2c5e7ac708aaa719366570dd82bda44541ca2a63: command failed: [git checkout 2c5e7ac708aaa719366570dd82bda44541ca2a63]: exit status 128
Reason
is a bug
, because the cache error is not updated correctly
Solution Solutions
rm -rf $GOPATH/pkg/dep/sources
And then dep ensure
dep init -v
we can do it again.
What kind of strange problems have you encountered, exchange: =)