protoc-gen-validate
protoc-gen-validate copied to clipboard
[Go] Distinct packages with the same base name result in import naming collisions
project structure:
pay_interface.proto:
api/pay/v1/enum/enum.proto:
api/order/v1/enum/enum.proto:
get errors
/api/pay/v1/pay_interface.pb.validate.go:22:2: enum redeclared as imported package name
i just fixed this issue by this way!!
Gonna reopen, as this is a real bug we should address in our codegen, and not require users to change an existing package name.