You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently have had the same problem. It comes down to a dependency failure : cannot find package "github.com/go-playground/validator/v10" in any of. It happens when you do ``dep ensure``` as well
This problem has been asked in here. It looks like some kind of issues between dep and go modules, which are incompatible I assume.
I have managed to install the program by ditching dep completely and switching to go modules. You can find a tutorial here. You would Go 1.11+.
TL;DR
This method works with Go 1.11, 1.12, and should work with every 1.X future release.
move your code outside of GOPATH
go mod init [module path]: this will import dependencies from Gopkg.lock.
go mod tidy: this will remove unnecessary imports, and add indirect ones.
rm -fr vendor/
go build: is everthing ok?
rm -f Gopkg.lock Gopkg.toml
git commit -m 'chore(dep): migrated from dep to Go 1.11 modules'
To install the program in the future, you would just do go build
I would do a pull request, but I'm not sure about your Go setup
"go get -v -t ./..." failed. It couldn't resolve the dependency?
The text was updated successfully, but these errors were encountered: