Add update-lock command, add module name, and add dep for rules_cc

This commit is contained in:
Evan Fiordeliso 2023-11-28 23:10:32 -05:00
parent 47c5ff370d
commit c1272bdfe1
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,5 @@
"""$REPO_NAME"""
module(name = "$REPO_NAME")
bazel_dep(name = "rules_cc", version = "0.0.9")

View File

@ -17,6 +17,10 @@
echo "Bazel version: $(bazel --version | cut -d ' ' -f 2)"
'';
scripts.update-lock.exec = ''
bazel mod deps --lockfile_mode=update
'';
scripts.build.exec = ''
bazel build //main:$$NAME
'';