Skip to content

Commit f7d5972

Browse files
authored
Merge pull request #3022 from Pinata-Consulting/bazel-user-bazelrc
bazel: match OpenROAD and bazel best practice, user.bazelrc
2 parents cf6f041 + 92cedfe commit f7d5972

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

flow/.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
build --incompatible_strict_action_env
2-
try-import %workspace%/.user-bazelrc
2+
try-import %workspace%/user.bazelrc

flow/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ settings.mk
22
vars.sh
33
vars.gdb
44
vars.tcl
5-
.user-bazelrc
5+
user.bazelrc
66
bazel-*

flow/util/cred_helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919

2020
def get_gcloud_auth_token(test):
2121
"""
22-
Returns the gcloud auth token based on the .user-bazelrc
22+
Returns the gcloud auth token based on the user.bazelrc
2323
"""
2424

25-
with open(".user-bazelrc") as f:
25+
with open("user.bazelrc") as f:
2626
all = f.read()
2727
match = re.search(r"# user: (.*)", all)
2828
if match is None:
29-
sys.exit('Did not find username in .user-bazelrc file as "# user: <username>"')
29+
sys.exit('Did not find username in user.bazelrc file as "# user: <username>"')
3030
USER = match.group(1)
3131

3232
cmd = ["gcloud", "auth", "print-access-token", USER]

0 commit comments

Comments
 (0)