-
Notifications
You must be signed in to change notification settings - Fork 149
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
feat: introduce bufbuild/connect-es #338
Conversation
Recommend rebase. |
db30e31
to
9fc76c2
Compare
Hey @pcj it's rebased now. |
b256b4c
to
c00352e
Compare
I removed the changes in the example/ folder for now, because:
I see there's also a test fixture in example/golden. But neither WORKSPACE file there uses rules_ts, because the stephenh/ts-proto plugin isn't tested here. I'm trying to follow your existing conventions and not invent anything new. So if you'd like to test it in this way, perhaps we should first do a "pre-factor" to add that missing coverage for the existing plugin, then I can follow along. |
Some notes on getting this to work:
Both of these issues might be out of scope for this PR but would probably have to be worked around by anyone wanting to use these new plugins. Once these two were resolved the codegen seems to work complete with tsc checks. |
One other issue I encountered with this, when attempting to use The issue here seems to be that as part of the nature of how |
@pcj any chance you may be able to look at this one again soon? We're likely to start using it and would like to avoid running on a fork for too long. |
@voxeljorge Thanks for the ping, I'll start reviewing this today. |
hi @pcj just a friendly reminder about this one, if there's anything I can do to help move it along please let me know :) |
@voxeljorge Did you come up with a workaround for this? I'm running into the same issue separate from this PR |
We got around this by replacing the built-in rule using a
|
Thanks. That makes sense. Can you share your macro and perhaps the relevant sections of your tsconfig if you messed with the paths? I tried something like this:
But
Are you using a single |
This is the macro we're using. We keep all of our proto definition in a top level package called
|
Doing some overdue maintainance work on stackb/rules_proto today. @alexeagle are you happy with the current state of this PR? If so let's get it rebased such that it will trigger the github actions CI rather than the bazel-buildkite CI. |
@pcj We're currently using this PR as-is (with the macro from my comment) to successfully generate so I can confirm that the basic functionality seems in order. |
@pcj I've rebased the PR. |
LGTM |
See https://github.com/bufbuild/connect-es
This is just a first step to get a live protoc invocation, but doesn't provide any rules for users (maybe they don't need any, and existing proto_nodejs_library is fine).
It also doesn't include any gazelle extension affordance for generating BUILD files that use buf plugins.
Tested: