From 0cb85f693dace0b16cd0517296ed217658538200 Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Fri, 7 Jun 2024 11:49:45 -0700 Subject: [PATCH] chore: add --check_direct_dependencies to .bazelrc (#864) --- .bazelrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.bazelrc b/.bazelrc index 5151bee..23e1909 100644 --- a/.bazelrc +++ b/.bazelrc @@ -10,10 +10,10 @@ import %workspace%/.aspect/bazelrc/performance.bazelrc # For testing our --stamp behavior. # Normally users would use a --workspace_status_command with a script that calls `git describe`. -build --embed_label=v1.2.3 +common --embed_label=v1.2.3 # Mock versioning command to test the --stamp behavior -build --workspace_status_command="echo BUILD_SCM_VERSION 1.2.3" +common --workspace_status_command="echo BUILD_SCM_VERSION 1.2.3" # For releasing, use --workspace_status_command and stamp # before adding more flags to the release config make sure it does not @@ -21,6 +21,11 @@ build --workspace_status_command="echo BUILD_SCM_VERSION 1.2.3" # add appropriate commandline transition there to match the configuration. common:release -c opt +# Don’t want to push a rules author to update their deps if not needed. +# https://bazel.build/reference/command-line-reference#flag--check_direct_dependencies +# https://bazelbuild.slack.com/archives/C014RARENH0/p1691158021917459?thread_ts=1691156601.420349&cid=C014RARENH0 +common --check_direct_dependencies=off + # Load any settings & overrides specific to the current user from `.aspect/bazelrc/user.bazelrc`. # This file should appear in `.gitignore` so that settings are not shared with team members. This # should be last statement in this config so the user configuration is able to overwrite flags from