File tree 3 files changed +12
-1
lines changed
3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ common --action_env=RULES_PYTHON_ENABLE_PYSTAR=0
14
14
# https://bazelbuild.slack.com/archives/C014RARENH0/p1691158021917459?thread_ts=1691156601.420349&cid=C014RARENH0
15
15
common --check_direct_dependencies=off
16
16
17
+ # Force rules_go to disable CGO even though we have a (fake) C++ toolchain registered.
18
+ common --host_platform=//:no_cgo_host_platform
19
+
17
20
# Load any settings specific to the current user.
18
21
# .bazelrc.user should appear in .gitignore so that settings are not shared with team members
19
22
# This needs to be last statement in this
Original file line number Diff line number Diff line change
1
+ load ("@platforms//host:constraints.bzl" , "HOST_CONSTRAINTS" )
2
+
3
+ platform (
4
+ name = "no_cgo_host_platform" ,
5
+ constraint_values = HOST_CONSTRAINTS + [
6
+ "@rules_go//go/toolchain:cgo_off" ,
7
+ ],
8
+ )
Original file line number Diff line number Diff line change 9
9
bazel_dep (name = "bazel_features" , version = "1.9.0" )
10
10
bazel_dep (name = "bazel_skylib" , version = "1.4.1" )
11
11
bazel_dep (name = "rules_proto" , version = "6.0.0" )
12
- bazel_dep (name = "platforms" , version = "0.0.8 " )
12
+ bazel_dep (name = "platforms" , version = "0.0.10 " )
13
13
14
14
protoc = use_extension ("//protoc:extensions.bzl" , "protoc" )
15
15
protoc .toolchain (
You can’t perform that action at this time.
0 commit comments