Closed TheMarex closed 11 months ago
Curious, rulegen shouldn't need Ruby at all to run so in theory it shouldn't be built. However, if you are running make rulegen
, it could be the initial bazel query
that is triggering the Ruby dependency rather than anything rulegen related. How are you running rulegen?
As for the point of continued Ruby support: the Ruby rules give no end of trouble when it comes to CI builds etc, since rules_ruby build the Ruby runtime on every build and somehow break Windows CI IIRC. However, I can't realistically drop them mid v4.x.x release cycle unless it gets really unreasonable to continue.
Whenever v5.x.x of these rules come along, that will be the 'bzlmod version' and will be targeting bzlmod supporting language rulesets only, which at the moment is not too many and is missing some key requirements last I looked. At that point, Ruby's continued inclusion is dependent on whether there is bzlmod Ruby support, which implies rules_ruby gets updated to do so. Since Bazel 6 is out today, that's something I can vaguely start thinking about...
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Issue Description
When trying to run
bazelisk build //...
on Arch Linux with GCC version 12.2.0 the build of@org_ruby_lang_ruby_toolchain
fails because the compiler does not understand some legacy flags. Of course this is not an issue for downstream if you do not depend on ruby, however I was trying to work onrules_proto_grpc
and this prohibits me from running//tools/rulegen
without patching the ruby support out of the repo first. I suspect more contributors will run into similar issues soon, which doesn't exactly improve the development experience.I looked into bumping the version for
rules_ruby
since I suppose this is and issue that was fixed forruby 3.0.4p208 (2022-04-12 revision 3fa771dded)
which is my systems local version and was compiled with GCC 12 successfully. Howeverrules_ruby
seems not maintained given this PR is still open. @pcj given you added support for this initially: Should ruby support be removed or disabled by default?Log Output
rules_proto_grpc Version
master
Bazel Version
5.3.2
OS
Arch Linux
Link to Demo Repo
No response
WORKSPACE Content
No response
BUILD Content
No response
Proto Content
No response
Any Other Content
No response