Skip to content

Commit 2318bc9

Browse files
authored
chore: add --check_direct_dependencies to .bazelrc (#216)
1 parent 8c1f40a commit 2318bc9

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.bazelrc

+10-8
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ import %workspace%/.aspect/bazelrc/performance.bazelrc
88

99
### YOUR PROJECT SPECIFIC OPTIONS GO HERE ###
1010

11-
# Load any settings specific to the current user.
12-
# .bazelrc.user should appear in .gitignore so that settings are not shared with team members
13-
# This needs to be last statement in this
14-
# config, as the user configuration should be able to overwrite flags from this file.
15-
# See https://docs.bazel.build/versions/master/best-practices.html#bazelrc
16-
# (Note that we use .bazelrc.user so the file appears next to .bazelrc in directory listing,
17-
# rather than user.bazelrc as suggested in the Bazel docs)
18-
try-import %workspace%/.bazelrc.user
11+
# Don’t want to push a rules author to update their deps if not needed.
12+
# https://bazel.build/reference/command-line-reference#flag--check_direct_dependencies
13+
# https://bazelbuild.slack.com/archives/C014RARENH0/p1691158021917459?thread_ts=1691156601.420349&cid=C014RARENH0
14+
common --check_direct_dependencies=off
15+
16+
# Load any settings & overrides specific to the current user from `.aspect/bazelrc/user.bazelrc`.
17+
# This file should appear in `.gitignore` so that settings are not shared with team members. This
18+
# should be last statement in this config so the user configuration is able to overwrite flags from
19+
# this file. See https://bazel.build/configure/best-practices#bazelrc-file.
20+
try-import %workspace%/.aspect/bazelrc/user.bazelrc

0 commit comments

Comments
 (0)