asaskevich / govalidator

[Go] Package of validators and sanitizers for strings, numerics, slices and structs
MIT License
6.05k stars 555 forks source link

Impossible to go get the package #295

Closed antho1404 closed 6 years ago

antho1404 commented 6 years ago

It seems that the latest pull requests created a bug and it's impossible right now to fetch the govalidator package

go get -t ./...
# github.com/asaskevich/govalidator
../../asaskevich/govalidator/validator.go:1202:26: invalid argument customErrorMessage (type tagOption) for len
../../asaskevich/govalidator/validator.go:1225:45: cannot use customErrorMessage (type tagOption) as type string in argument to fmt.Errorf
../../asaskevich/govalidator/validator.go:1225:95: too few values in struct initializer
../../asaskevich/govalidator/validator.go:1228:127: too few values in struct initializer
../../asaskevich/govalidator/validator.go:1230:130: too few values in struct initializer

I have the exact same issue with a go get -u github.com/asaskevich/govalidator

jamiekurtz commented 6 years ago

+1

asaskevich commented 6 years ago

@antho1404 @jamiekurtz I reverted https://github.com/asaskevich/govalidator/pull/286 now it should be fine

jamiekurtz commented 6 years ago

Thanks, that fixed it.

antho1404 commented 6 years ago

Perfect, that was fast 😃