Closed alexandear closed 1 month ago
@alexandear this is a common misconception, but thank you for the PR.
It only became mandatory in Go 1.21+ Before Go 1.21, the directive was advisory only; now it is a mandatory requirement
asserted in the Go Mod Reference https://go.dev/doc/modules/gomod-ref
And so versions prior to Go 1.21, including Go 1.17 are still supported by this package and the CI test is here to ensure no breaking changes are made to the package and Go 1.17 users.
It's an unfortunate and confusing state of affairs :(
Also see this previous comment with similar/related content https://github.com/go-playground/validator/issues/1225#issuecomment-1955841240
@deankarn thanks for detailed response. Maybe it's better to set go 1.17 in go.mod? So, everyone knows Go 1.17 is supported by the library.
Fixes Or Enhances
Removes Go 1.17 from the test CI job to speed up pipeline execution.
Testing with Go 1.17 is not needed because the minimum supported version is Go 1.18, as stated in the go.mod.
@go-playground/validator-maintainers