kdhcp/gazelle.sh

15 lines
245 B
Bash
Raw Normal View History

2023-04-30 06:46:44 +00:00
#!/bin/bash
2023-04-22 08:25:13 +00:00
set -euxo pipefail
BAZEL="bazel"
if [ -z "$(command -v ${BAZEL})" ]
then
BAZEL="bazelisk"
fi
$BAZEL run //:gazelle
$BAZEL run //:gazelle -- update-repos -from_file=go.mod -to_macro=deps.bzl%go_dependencies
$BAZEL run //:gazelle