Skip to content

Fork of rules_ruby #14569

Closed
Closed
@alexeagle

Description

Every Bazel user of this repo depends on ruby, due to an eager load statement evaluated during Bazel's loading phase

load("@rules_ruby//ruby:defs.bzl", "ruby_library")

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

repo = "https://github.com/protocolbuffers/rules_ruby",

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions