asaskevich / govalidator

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

TestIsExistingEmail failure with Go 1.12.2 #336

Open eclipseo opened 5 years ago

eclipseo commented 5 years ago

Go 1.12.2 on Fedora Rawhide

Testing in: /builddir/build/BUILD/govalidator-f61b66f89f4a311bef65f13e575bcf1a2ffadda6/_build/src
      PATH: /builddir/build/BUILD/govalidator-f61b66f89f4a311bef65f13e575bcf1a2ffadda6/_build/bin:/builddir/.local/bin:/builddir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
    GOPATH: /builddir/build/BUILD/govalidator-f61b66f89f4a311bef65f13e575bcf1a2ffadda6/_build:/usr/share/gocode
   command: go test -buildmode pie -compiler gc -ldflags "-X github.com/asaskevich/govalidator/version.commit=f61b66f89f4a311bef65f13e575bcf1a2ffadda6 -X github.com/asaskevich/govalidator/version=9 -extldflags '-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '"
   testing: github.com/asaskevich/govalidator
github.com/asaskevich/govalidator
--- FAIL: TestIsExistingEmail (0.01s)
    validator_test.go:659: Expected IsExistingEmail("foo@bar.com") to be true, got false
    validator_test.go:659: Expected IsExistingEmail("foo@bar.com.au") to be true, got false
    validator_test.go:659: Expected IsExistingEmail("foo+bar@bar.com") to be true, got false
    validator_test.go:659: Expected IsExistingEmail("foo@bar.coffee") to be true, got false
    validator_test.go:659: Expected IsExistingEmail("NathAn.daVIeS@DomaIn.cOM") to be true, got false
    validator_test.go:659: Expected IsExistingEmail("NATHAN.DAVIES@DOMAIN.CO.UK") to be true, got false
FAIL
exit status 1
FAIL    github.com/asaskevich/govalidator   0.030s
sergeyglazyrindev commented 3 years ago

Hello guys! I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back Link to my repo: create issue there and we'll discuss it.