bazelbuild/bazel

user.bazelrc or .bazelrc.user?

Open

#28839 opened on Feb 28, 2026

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Java (25,384 stars) (4,465 forks)batch import
P2help wantedteam-Documentationteam-OSStype: documentation (cleanup)

Description

Page link:

No response

Problem description (include actual vs expected text, if applicable):

Bazel best practices recommends

try-import %workspace%/user.bazelrc

But rules-template has

try-import %workspace%/.bazelrc.user

Which is it? It would be nice to be consistent, for users to be able to override project flags in a predictable location.

Where do you see this issue? (include link to specific section of the page, if applicable)

No response

Any other information you'd like to share?

No response

Contributor guide