New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
../gopkg.in/go-playground/validator.v9/translations/ja/ja.go:13:2: cannot find package "github.com/go-playground/validator/v10" in any of: #546
Comments
the run command I use in Dockerfile is below. RUN go get -u gopkg.in/go-playground/validator.v9 |
hello. i have error in v10 |
see #549 , think it's fixed on v9.30.2 |
@deankarn |
Please let me know if it’s all good now :) |
still failing for me when validator is depended by gin
|
i got the same error |
Any updates on this? This is a blocker because the docker builds are failing for us. Please help |
I
There's something wrong with this library , if you "go get" or "govendor fetch" the latest version, there is still not a folder named "v10" or it is empty, so you have to do it manually: |
@laoluotuo are you using go modules? The path with the v10 suffix won’t work with pre-existing tooling prior to go modules, but you should be able to drop the suffix if that’s the case. |
I'm only using govendor |
Try these. $ sudo add-apt-repository ppa:longsleep/golang-backports |
still getting same error |
Hey all, I've had to explain this a few times, go modules has fractured the community pretty hard.
I encourage everyone to update to using Go Modules to help resolve the bad state the community is in where much of the old versioning tooling is not compatible with the new Go Modules. |
Package version eg. v8, v9:
v9
Issue, Question or Enhancement:
how should I fix the error as in the title.
Code sample, to showcase or reproduce:
the app container logs below:
when I attach the container and check the import sentences, it, indeed, imports "github.com/go-playground/validator/v10"
docker exec -it hoge-api head -n 20 /go/src/gopkg.in/go-playground/validator.v9/translations/ja/ja.go
The text was updated successfully, but these errors were encountered: