Skip to content

Commit 664d94a

Browse files
authored
Patch rules_ruby to apply neverlink = True to the jars rule (#21416) (#21505)
Fixes #21369 Closes #21416 COPYBARA_INTEGRATE_REVIEW=#21416 from protocolbuffers:neverlink_jruby_jars a874866 PiperOrigin-RevId: 750432837
1 parent a59988c commit 664d94a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ single_version_override(
6767
patch_strip = 1,
6868
patches = [
6969
"@com_google_protobuf//:Disable_bundle_install.patch",
70+
"@com_google_protobuf//:Neverlink_jruby_jars.patch",
7071
],
7172
version = "0.17.3",
7273
)

Neverlink_jruby_jars.patch

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Index: ruby/private/download/BUILD.tpl
2+
IDEA additional info:
3+
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
4+
<+>UTF-8
5+
===================================================================
6+
diff --git a/ruby/private/download/BUILD.tpl b/ruby/private/download/BUILD.tpl
7+
--- a/ruby/private/download/BUILD.tpl (revision 26e0ba621cb82933f28a59373cb6a7afe54fae95)
8+
+++ b/ruby/private/download/BUILD.tpl (date 1745340325192)
9+
@@ -33,6 +33,7 @@
10+
["dist/lib/**/*.jar"],
11+
allow_empty = True,
12+
),
13+
+ neverlink = True,
14+
)
15+
16+
rb_toolchain(

0 commit comments

Comments
 (0)