-
Notifications
You must be signed in to change notification settings - Fork 73
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
change go package #215
change go package #215
Conversation
Hi @pfi79, I'm not sure what you're trying to fix but code generation is managed by Buf, including the default go package... https://github.com/hyperledger/fabric-protos/blob/main/buf.gen.yaml#L5 |
So I should change it to fabric-protos-go-apiv2 everywhere? |
Signed-off-by: Fedor Partanskiy <partanskiy.f@n-t.io> Signed-off-by: Fedor Partanskiy <pfi79@mail.ru>
Let me try to tell you what we do. Therefore, this line is set incorrectly in the orderer/smartbft/configuration.proto file. |
Basically, I create my proto file:
buf will generate a .pb.go file with this import section.
But there is no such module |
For Fabric we still use apiv1. I believe @jt-nti Do you agree? How do we suppress the Lint failure so that it builds? |
@denyeart I don't think we want to supress the lint warning since in general we probably want to think about changing packages. (Talking of which, is it too soon to update the go packages to github.com/hyperledger/fabric-protos-go-apiv2?) I would keep the lint warning and if you're happy that it's ok for this PR, then you should be able to force merge it. (I tried to approve the PR but I've been removed from the Hyperledger org so it wouldn't let me 🙁) |
given you are ok, I've approved this PR. |
@jt-nti There have been some challenges updating core Fabric to apiv2, see discussion in hyperledger/fabric#3650 |
No description provided.