Skip to content

https://github.com/bufbuild/protoc-gen-validate/issues/672#1374

Closed
qjw wants to merge 1 commit intobufbuild:mainfrom
lixinio:fix/package-alias-error
Closed

https://github.com/bufbuild/protoc-gen-validate/issues/672#1374
qjw wants to merge 1 commit intobufbuild:mainfrom
lixinio:fix/package-alias-error

Conversation

@qjw
Copy link

@qjw qjw commented Mar 2, 2026

当一个文件引用了多个package的定义,并且都加入校验 [(validate.rules).enum.defined_only = true] ,如果这几个包的后缀都相同,例如/v1 , 生成的go代码 package alias 有问题

另外一个改动是为了避免太多diff, 回退了一个没啥影响的代码改动

当一个文件引用了多个package的定义,并且都加入校验 [(validate.rules).enum.defined_only = true] ,如果这几个包的后缀都相同,例如/v1 , 生成的go代码 package alias 有问题

另外一个改动是为了避免太多diff, 回退了一个没啥影响的代码改动
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@qjw qjw closed this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants