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

Set Go package option pointing to generated SDK #8

Merged
merged 2 commits into from
Jan 16, 2024
Merged

Conversation

jhump
Copy link
Member

@jhump jhump commented Jan 11, 2024

The github.com/bufbuild/prototransform package uses this import path, so this seems like the canonical Go import path that should be documented in the proto itself. This is also consistent with the option in protovalidate.

We may want to update the breaking change detection logic in buf to allow changing a Go package from empty to non-empty, because the Go plugin will not actually generate any code if it's empty. So previously (with no option), users had to provide a -M option to the plugin in order to actually import this file and generate Go code. So setting the package now should not actually break anyone.

@jhump jhump requested a review from bufdev January 11, 2024 14:34
@@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/[email protected]
# - uses: bufbuild/[email protected]
Copy link
Member Author

Choose a reason for hiding this comment

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

This is temporary and will be reverted after this change is merged and then sync'ed to the BSR.

@jhump jhump merged commit c7e85ab into main Jan 16, 2024
4 checks passed
@jhump jhump deleted the jh/go-pkg-option branch January 16, 2024 15:05
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