diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 2f59d2b27a..b980ec5285 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -343,6 +343,9 @@ tasks: name: Examples test on Ubuntu platform: ubuntu2004 working_directory: examples/basic-gazelle + build_flags: + - "--incompatible_config_setting_private_default_visibility" + - "--incompatible_enforce_config_setting_visibility" build_targets: - "//..." test_targets: @@ -351,14 +354,20 @@ tasks: name: Examples test on MacOS platform: macos working_directory: examples/basic-gazelle + build_flags: + - "--incompatible_config_setting_private_default_visibility" + - "--incompatible_enforce_config_setting_visibility" build_targets: - "//..." test_targets: - "//..." windows_examples: - platform: windows name: Examples test on Windows + platform: windows + working_directory: examples/basic-gazelle build_flags: + - "--incompatible_config_setting_private_default_visibility" + - "--incompatible_enforce_config_setting_visibility" # Go requires a C toolchain that accepts options and emits errors like # gcc or clang. The Go SDK does not support MSVC. - "--cpu=x64_windows" @@ -370,7 +379,6 @@ tasks: - "--host_platform=@io_bazel_rules_go//go/toolchain:windows_amd64_cgo" - "--platforms=@io_bazel_rules_go//go/toolchain:windows_amd64_cgo" - "--incompatible_enable_cc_toolchain_resolution" - working_directory: examples/basic-gazelle build_targets: - "//..." test_targets: diff --git a/examples/basic-gazelle/WORKSPACE b/examples/basic-gazelle/WORKSPACE index b368467bef..2d9a58d00d 100644 --- a/examples/basic-gazelle/WORKSPACE +++ b/examples/basic-gazelle/WORKSPACE @@ -6,10 +6,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # checks the sha. http_archive( name = "io_bazel_rules_go", - sha256 = "099a9fb96a376ccbbb7d291ed4ecbdfd42f6bc822ab77ae6f1b5cb9e914e94fa", + sha256 = "56d8c5a5c91e1af73eca71a6fab2ced959b67c86d12ba37feedb0a2dfea441a6", urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.35.0/rules_go-v0.35.0.zip", - "https://github.com/bazelbuild/rules_go/releases/download/v0.35.0/rules_go-v0.35.0.zip", + "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.37.0/rules_go-v0.37.0.zip", + "https://github.com/bazelbuild/rules_go/releases/download/v0.37.0/rules_go-v0.37.0.zip", ], ) @@ -59,7 +59,7 @@ go_rules_dependencies() # The next rule installs the Go toolchains. The Go version is specified # using the version parameter. This rule will download the Go SDK. # https://github.com/bazelbuild/rules_go/blob/master/go/toolchains.rst#go_register_toolchains -go_register_toolchains(version = "1.19.1") +go_register_toolchains(version = "1.19.3") # The following call configured the gazelle dependencies, Go environment and Go SDK. gazelle_dependencies()