-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
*: update to use full package name for option go_package
in protos
#97272
Conversation
d60ce6a
to
885e5d8
Compare
roachpb
in go_package
option go_package
in protos
900091a
to
922bc37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of sheer paranoia, I would double-check that the generated files show no other differences (like they would if we changed the proto package names).
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @healthy-pod)
922bc37
to
d8baef9
Compare
There are actually diffs in the
As far as I can tell this is because the |
PR still has some issues with code generation, I'll take care of that. |
Everywhere in the entire tree we use `option go_package` statements like the following: ``` option go_package = "build"; ``` We do this *instead of* using the entire fully-qualified package name, like: ``` option go_package = "github.com/cockroachdb/cockroach/pkg/build"; ``` This is apparently just an error. All the documentation I have seen (https://github.com/cockroachdb/gogoproto/blob/master/README) suggests that the fully-qualified package name should be used here. Further, this caused the `make` build to break after a refactor as the code generator doesn't know how to import a package like `"roachpb"` (since it should instead be importing `"github.com/cockroachdb/cockroach/pkg/roachpb"`). Correct this problem *everywhere* and update the `Makefile` to set `paths=source_relative` to tell `protoc` that output files should be placed next to input files. Epic: none Release note: None
d8baef9
to
e890c33
Compare
bors r=rail,stevendanna,RaduBerinde |
This PR was included in a batch that was canceled, it will be automatically retried |
Build succeeded: |
Everywhere in the entire tree we use
option go_package
statements likethe following:
We do this instead of using the entire fully-qualified package name,
like:
This is apparently just an error. All the documentation I have seen
(https://github.com/cockroachdb/gogoproto/blob/master/README) suggests
that the fully-qualified package name should be used here. Further, this
caused the
make
build to break after a refactor as the code generatordoesn't know how to import a package like
"roachpb"
(since it shouldinstead be importing
"github.com/cockroachdb/cockroach/pkg/roachpb"
).Correct this problem everywhere and update the
Makefile
to setpaths=source_relative
to tellprotoc
that output files should beplaced next to input files.
Epic: none
Release note: None