1

wip: go repositories

This commit is contained in:
Motiejus Jakštys
2021-07-21 14:59:33 +03:00
parent cb10c591be
commit 631906ffd8
4 changed files with 23 additions and 0 deletions

11
bin/mod-tidy Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -xeuo pipefail
cd "$(git rev-parse --show-toplevel)"
bazel build @go_sdk//:go_sdk
bazel-bazel-zig-cc/external/go_sdk/bin/go mod tidy
exec bazel run //:gazelle -- update-repos \
-from_file=go.mod \
-prune \
-to_macro=repositories.bzl%go_repositories