github.com/bazelbuild/rules_go@v0.47.2-0.20240515105122-e7ddb9ea474e/.bazelrc (about) 1 common --enable_platform_specific_config 2 # TODO: Temporarily disable while rules_go migrates to Bzlmod for its dev build. 3 # https://github.com/bazelbuild/bazel/issues/18958 4 common --noexperimental_enable_bzlmod 5 test --test_output=errors 6 7 # Go requires a C toolchain that accepts options and emits errors like 8 # gcc or clang. The Go SDK does not support MSVC. 9 build:windows --cpu=x64_windows 10 build:windows --compiler=mingw-gcc 11 12 # NOTE(bazelbuild/bazel#10529): bazel doesn't register the mingw toolchain automatically. 13 # We also need the host and target platforms to have the mingw constraint value. 14 build:windows --extra_toolchains=@local_config_cc//:cc-toolchain-x64_windows_mingw 15 build:windows --host_platform=@io_bazel_rules_go//go/toolchain:windows_amd64_cgo 16 build:windows --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64_cgo 17 build:windows --incompatible_enable_cc_toolchain_resolution 18 19 build:check --all_incompatible_changes 20 21 common:ci --color=no 22 build:ci --verbose_failures 23 build:ci --sandbox_debug 24 build:ci --spawn_strategy=standalone 25 build:ci --genrule_strategy=standalone 26 test:ci --test_strategy=standalone 27 28 # Incompatible flags to test in a dedicated CI pipeline. 29 build:incompatible --incompatible_load_proto_rules_from_bzl 30 build:incompatible --incompatible_enable_cc_toolchain_resolution 31 build:incompatible --incompatible_config_setting_private_default_visibility 32 build:incompatible --incompatible_enforce_config_setting_visibility 33 build:incompatible --incompatible_disallow_empty_glob 34 build:incompatible --incompatible_disable_starlark_host_transitions 35 build:incompatible --nolegacy_external_runfiles 36 build:incompatible --incompatible_enable_proto_toolchain_resolution 37 # Also enable all incompatible flags in go_bazel_test by default. 38 # TODO: Add --incompatible_disallow_empty_glob once 39 # https://github.com/bazelbuild/bazel-gazelle/pull/1405 has been released. 40 test:incompatible --test_env=GO_BAZEL_TEST_BAZELFLAGS='--incompatible_load_proto_rules_from_bzl --incompatible_enable_cc_toolchain_resolution --incompatible_config_setting_private_default_visibility --incompatible_enforce_config_setting_visibility --incompatible_disable_starlark_host_transitions --nolegacy_external_runfiles --incompatible_enable_proto_toolchain_resolution'