Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

namespace conflict fixed #70

Merged
merged 1 commit into from
Apr 16, 2021
Merged

Conversation

kdpujie
Copy link
Contributor

@kdpujie kdpujie commented Apr 15, 2021

主要解决这个问题#58
protobuf官方规定,在go中应用时,同一个package下边是不能有相同枚举值的,不同版本的protobufs对该类情况处理方式不同,有的是警告,有的直接就panic了。详情见:https://developers.google.cn/protocol-buffers/docs/reference/go/faq

综合考虑了一下,我觉得修改pb定义的包结构是最合理的,也不会影响java端的使用。

@withlin
Copy link
Owner

withlin commented Apr 16, 2021

@kdpujie 可以 rebase一下 提交信息吗?

@kdpujie
Copy link
Contributor Author

kdpujie commented Apr 16, 2021

@withlin 好的,我试试。不常用哈,哈哈

@kdpujie kdpujie closed this Apr 16, 2021
@kdpujie kdpujie changed the title Namespace conflict namespace conflict fixed Apr 16, 2021
@kdpujie kdpujie reopened this Apr 16, 2021
1. proto分包
2. NONE和兼容pb2的处理方式相同。否则启动时会panic
@kdpujie
Copy link
Contributor Author

kdpujie commented Apr 16, 2021

@withlin rebase & squash has been done, pls check and merge it, thks.

@withlin
Copy link
Owner

withlin commented Apr 16, 2021

@kdpujie tks

@withlin withlin merged commit 11a1f3e into withlin:master Apr 16, 2021
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.

None yet

2 participants