From c1272bdfe16ed3e1212dc405c15c3d5c752497f4 Mon Sep 17 00:00:00 2001 From: Evan Fiordeliso Date: Tue, 28 Nov 2023 23:10:32 -0500 Subject: [PATCH] Add update-lock command, add module name, and add dep for rules_cc --- MODULE.bazel | 5 +++++ devenv.nix | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/MODULE.bazel b/MODULE.bazel index e69de29..93c416e 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -0,0 +1,5 @@ +"""$REPO_NAME""" + +module(name = "$REPO_NAME") + +bazel_dep(name = "rules_cc", version = "0.0.9") diff --git a/devenv.nix b/devenv.nix index 1d24821..4ec03c4 100644 --- a/devenv.nix +++ b/devenv.nix @@ -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 '';