Closed kailashyogeshwar85 closed 1 year ago
Thanks for the bug report. It looks like in https://github.com/bufbuild/protovalidate-go/pull/31 we introduced a dependency on atomic.Pointer, which requires Go 1.19, but we forgot to update the minimum required version in go.mod. We will get this fixed.
I assume that you are using Go 1.18 or earlier? If so, the solution is to either upgrade Go to 1.19 or later or downgrade protovalidate to v0.3.1 or earlier.
Description
Steps to Reproduce
GO_PATH/pkg/mod/github.com/bufbuild/protovalidate-go@v0.3.3/internal/evaluator/builder.go:34:21: undefined: atomic.Pointer
Expected Behavior
Actual Behavior
Program terminates
Screenshots/Logs
Environment
Possible Solution
Additional Context
Works when download protovalidate-go to v0.2.0