Bazel-3.7.1_fix-protobuf-env.patch 654 Bytes
Newer Older
Stepan Nassyr's avatar
Stepan Nassyr committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/third_party/protobuf/3.13.0.patch b/third_party/protobuf/3.13.0.patch
index bde8684b82..3336ef4024 100644
--- a/third_party/protobuf/3.13.0.patch
+++ b/third_party/protobuf/3.13.0.patch
@@ -38,3 +38,15 @@ index cfdb28e2e..3705fdbe3 100644
 +        "@io_bazel//third_party:gson",
      ],
  )
+diff --git a/protobuf.bzl b/protobuf.bzl
+index 050eafc54..12d3edb94 100644
+--- a/protobuf.bzl
++++ b/protobuf.bzl
+@@ -352,6 +352,7 @@ def _internal_gen_well_known_protos_java_impl(ctx):
+         inputs = descriptors,
+         outputs = [srcjar],
+         arguments = [args],
++        use_default_shell_env = True,
+     )
+ 
+     return [