forked from protocolbuffers/protobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make rules_ruby a dev-only dependency.
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
- Loading branch information
1 parent
8a60b65
commit 2d9bdcf
Showing
11 changed files
with
102 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""Wrapper around internal_ruby_proto_library to supply our rules_ruby""" | ||
|
||
load("@rules_ruby//ruby:defs.bzl", "ruby_library") | ||
load("//:protobuf.bzl", _internal_ruby_proto_library = "internal_ruby_proto_library") | ||
|
||
def internal_ruby_proto_library( | ||
name, | ||
**kwargs): | ||
"""Bazel rule to create a Ruby protobuf library from proto source files | ||
NOTE: the rule is only an internal workaround to generate protos. The | ||
interface may change and the rule may be removed when bazel has introduced | ||
the native rule. | ||
Args: | ||
name: the name of the ruby_proto_library. | ||
**kwargs: other keyword arguments that are passed to ruby_library. | ||
""" | ||
_internal_ruby_proto_library( | ||
name, | ||
ruby_library, | ||
**kwargs | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -777,6 +777,7 @@ exports_files( | |
visibility = [ | ||
"//:__pkg__", | ||
"//python:__pkg__", | ||
"//ruby:__pkg__", | ||
], | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -226,6 +226,7 @@ exports_files( | |
visibility = [ | ||
"//:__pkg__", | ||
"//python:__pkg__", | ||
"//ruby:__pkg__", | ||
], | ||
) | ||
|
||
|