From 481ca9dc381239087aafbbe97d1881ec8fa18fa7 Mon Sep 17 00:00:00 2001 From: Markus Hofbauer Date: Thu, 28 Aug 2025 15:45:15 +0200 Subject: [PATCH] Set incompatible_strict_action_env and announce_rc in CI --- .bazelci/presubmit.yml | 1 + .bazelrc | 2 ++ examples/bzlmod/.bazelrc | 1 + 3 files changed, 4 insertions(+) diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 5889823d3d..fbe881d435 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -34,6 +34,7 @@ buildifier: build_flags: - "--keep_going" - "--build_tag_filters=-integration-test" + - "--announce_rc" test_targets: - "--" - "..." diff --git a/.bazelrc b/.bazelrc index d7e1771336..076a7005dd 100644 --- a/.bazelrc +++ b/.bazelrc @@ -20,6 +20,8 @@ build --incompatible_default_to_explicit_init_py # Ensure ongoing compatibility with this flag. common --incompatible_disallow_struct_provider_syntax +common --incompatible_strict_action_env + # Windows makes use of runfiles for some rules build --enable_runfiles diff --git a/examples/bzlmod/.bazelrc b/examples/bzlmod/.bazelrc index ca83047ccc..25fc442c81 100644 --- a/examples/bzlmod/.bazelrc +++ b/examples/bzlmod/.bazelrc @@ -7,4 +7,5 @@ test --test_output=errors --enable_runfiles # Windows requires these for multi-python support: build --enable_runfiles +build --incompatible_strict_action_env common:bazel7.x --incompatible_python_disallow_native_rules