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

chore: copy protos for new APIs to go sdk and fix MakeFile #332

Merged
merged 4 commits into from
Jul 5, 2023

Conversation

pratik151192
Copy link
Contributor

@pratik151192 pratik151192 commented Jul 5, 2023

Updated MakeFile to provide the protoc path as internal/protos rather than internal. This fixed the problem of generating the proto files that was mentioned on the issue linked to this PR. However, there are certain changes I wanted to call out due to which one of our CIs is also failing:

  • I'm not sure what was happening before and how was this succeeding, but seems like protoc wants the directory that contains all the .proto files and internal/protos is the correct one for both reading the input files and generating the output ones.
  • Doing this, changed some variable and method names from protos_auth_proto to auth_proto whose format takes the directory structure. Since we told protoc to take files from internal/protos rather than internal only, all those source changes have been reflected either in source field or the variable/method names.
  • Our CI for Verify no changes from goimports and go mod tidy fails because some of the imports were reordered as a part of this update to the input and output directories. Note that the protoc version was also bumped from 3.20.3 to 4.23.3

We should really invest some time in this #333 as well and am going to do some digging once I have some time off my tasks.

None of this seem breaking to me but I'm not 100% so we can discuss over a call as well.

@pratik151192 pratik151192 linked an issue Jul 5, 2023 that may be closed by this pull request
Copy link
Collaborator

@cprice404 cprice404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will hold off on weighing in on this until @eaddingtonwhite and @pgautier404 do, they will have more context than I do.

Copy link
Contributor

@pgautier404 pgautier404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@pratik151192 pratik151192 merged commit 3bf20d2 into main Jul 5, 2023
6 checks passed
@pratik151192 pratik151192 deleted the copy-protos branch July 5, 2023 21:28
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.

protoc is failing due to inability to find extensions.proto
3 participants