-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
Fork of rules_ruby #14569
Comments
@mkruskal-google maybe you could give some more context about the decision to fork rules_ruby and whether you had any long-term plans for getting off that fork, or finding a maintainer for it? |
The reason we forked this is because we couldn't find any canonical rules_ruby. IIRC at the time there was some issue with bazelruby's. I vaguely recall it being deprecated/unmaintained? or maybe it wasn't endorsed by Bazel? Anyway, if there is a canonical rules_ruby now we'd be happy to switch to it (and maybe upstream our changes), although it would likely take some time (@zhangskz FYI). Would renaming this to something more clearly internal unblock this for now? |
I don't think the situation has improved that there's a single canonical rules_ruby. I just learned that the selenium team has Yet Another One https://github.com/p0deje/rules_ruby Renaming is only slightly helpful to disambiguate "this is the rules_ruby maintained by the protocolbuffers team". The problem will remain that yours will be the only rules_ruby on the Bazel Central Registry, which will appear to users to be the canonical one. Then you have a really big gap between the level of investment and maintenance that users will expect, vs. what you intend to provide (you call it "clearly internal" but it's not internal at all since all protobuf users depend on it) |
I think the ideal answer is for the protobuf repo to have fewer language-ruleset dependencies. I'd like to explore the design space of how we could have no Do you have any "downstream" project that consumes the ruby WKT where I could verify whether some protobuf change can still work for users? |
I don't know of any downstream projects using ruby (and I would expect most don't use Bazel), but our CI is heavily dependent on rules_ruby to actually test it. We do generate the |
I think the best answer here would be for Bazel folks to converge on a canonical rules_ruby, and then have people migrate to it. Having none of them in the central registry seems like a big problem |
See the linked issue for that convergence. Maybe it can be funded by the rules authors SIG. As a short term answer, if you really only need a rules_ruby in order to test with CI, then I think we should do a refactoring so that it's a "dev dependency" and not exposed to protobuf's users. Something like #14570 |
I'd be more than happy to move bazelruby/rules_ruby to the main org. |
There is no canonical rules_ruby repo today, and we don't want our fork to become one. In order to unblock inclusion of Protobuf in the bzlmod registry, we're making this a dev dependency and dropping support for Bazel/Ruby. Fixes #14569 PiperOrigin-RevId: 584076414
There is no canonical rules_ruby repo today, and we don't want our fork to become one. In order to unblock inclusion of Protobuf in the bzlmod registry, we're making this a dev dependency and dropping support for Bazel/Ruby. Fixes #14569 PiperOrigin-RevId: 584076414
There is no canonical rules_ruby repo today, and we don't want our fork to become one. In order to unblock inclusion of Protobuf in the bzlmod registry, we're making this a dev dependency and dropping support for Bazel/Ruby. Fixes #14569 PiperOrigin-RevId: 584076414
There is no canonical rules_ruby repo today, and we don't want our fork to become one. In order to unblock inclusion of Protobuf in the bzlmod registry, we're making this a dev dependency and dropping support for Bazel/Ruby. Fixes #14569 PiperOrigin-RevId: 584076414
There is no canonical rules_ruby repo today, and we don't want our fork to become one. In order to unblock inclusion of Protobuf in the bzlmod registry, we're making this a dev dependency and dropping support for Bazel/Ruby. Fixes #14569 PiperOrigin-RevId: 584076414
There is no canonical rules_ruby repo today, and we don't want our fork to become one. In order to unblock inclusion of Protobuf in the bzlmod registry, we're making this a dev dependency and dropping support for Bazel/Ruby. Fixes #14569 PiperOrigin-RevId: 584076414
There is no canonical rules_ruby repo today, and we don't want our fork to become one. In order to unblock inclusion of Protobuf in the bzlmod registry, we're making this a dev dependency and dropping support for Bazel/Ruby. Fixes #14569 PiperOrigin-RevId: 584076414
There is no canonical rules_ruby repo today, and we don't want our fork to become one. In order to unblock inclusion of Protobuf in the bzlmod registry, we're making this a dev dependency and dropping support for Bazel/Ruby. Fixes #14569 PiperOrigin-RevId: 584076414
There is no canonical rules_ruby repo today, and we don't want our fork to become one. In order to unblock inclusion of Protobuf in the bzlmod registry, we're making this a dev dependency and dropping support for Bazel/Ruby. Fixes #14569 PiperOrigin-RevId: 584076414
There is no canonical rules_ruby repo today, and we don't want our fork to become one. In order to unblock inclusion of Protobuf in the bzlmod registry, we're making this a dev dependency and dropping support for Bazel/Ruby. Fixes #14569 PiperOrigin-RevId: 584076414
I have been working on rules_ruby for the last week, I'm disappointed no one from the protobuf team replied here to indicate you had a different solution in mind. |
I had no idea there were so many forks.
Honestly when I started this project I was hoping Yugui would be my partner
in crime :)
But she ended up living in Japan and is very busy with something completely
not Bazel :)
Konstantin Gredeskoul
CEO & Principal Consultant ● ReinventONE Inc ● https://reinvent.one/ ●
(415) 265-1054
…On Tue, Nov 21, 2023 at 12:17 PM Alex Eagle ***@***.***> wrote:
I have been working on rules_ruby for the last week, I'm disappointed no
one from the protobuf team replied here to indicate you had a different
solution in mind.
—
Reply to this email directly, view it on GitHub
<#14569 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB7PDRA4EEC6XYBD2YQ7X3YFUD67AVCNFSM6AAAAAA6YGV3W2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRGYYTOMRWGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hey Alex, sorry I didn't realize you were actively working on this. I built off your draft PR after we had an internal discussion about how to handle this. Long-term, we'd like a canonical rules_ruby to use. But until then, leaving this as a dev-only dependency seems reasonable to unblock bzlmod |
Note, there is https://registry.bazel.build/modules/rules_ruby now, as a result of my work on this issue :) Also, @mkruskal-google WDYT about archiving protocolbuffers/rules_ruby so that it's clear that it's an unmaintained dead-end? |
It's not really unmaintained, we're depending on it for our tests. Once there's a suitable replacement I'd be thrilled to remove it though :) |
@mkruskal-google got it - we now have https://github.com/bazel-contrib/rules_ruby so that's our long-term goal, I imagine there are a few things missing to get to feature parity along with the dozen commits you had in your repo on top of the fork. |
There is no canonical rules_ruby repo today, and we don't want our fork to become one. In order to unblock inclusion of Protobuf in the bzlmod registry, we're making this a dev dependency and dropping support for Bazel/Ruby. Fixes protocolbuffers#14569 PiperOrigin-RevId: 584393841
Every Bazel user of this repo depends on ruby, due to an eager
load
statement evaluated during Bazel's loading phaseprotobuf/protobuf.bzl
Line 5 in 30f1575
However, this doesn't depend on a canonical rules_ruby which could be placed in the Bazel Central Registry, rather it's a protocolbuffers-team specific fork:
https://github.com/protocolbuffers/rules_ruby
which all bazel users are getting in their workspace due to
protobuf/protobuf_deps.bzl
Line 115 in 30f1575
This seems like a pretty major tech debt in this repo, and inhibits the task of providing protocol buffers on Bazel's registry, as I don't think we want your fork to be registered as the canonical rules_ruby, since you probably aren't offering to take the maintenance burden.
Note that the current entry https://registry.bazel.build/modules/protobuf/21.7 doesn't have this problem since the rules_ruby load statement didn't appear until later, introduced by #10525
I'll try cutting this load by moving everything ruby-related under the //ruby package. It still means bzlmod users won't be able to use the ruby well-known-types, but at least it makes the dependency graph satisfiable.
The text was updated successfully, but these errors were encountered: