blob: 970f6baac23afcc06d8656bdadb0f34d13df58e9 [file] [log] [blame]
Leopold Schabel5c80aca2019-10-22 15:48:58 +02001#!/bin/bash
2# gazelle.sh regenerates BUILD.bazel files for Go source files.
Leopold Schabeld868d692019-11-17 17:28:29 +01003set -euo pipefail
Leopold Schabel5c80aca2019-10-22 15:48:58 +02004
Leopold Schabeleff72172020-01-04 15:07:52 +01005scripts/symlink_generated_files.sh
6
Leopold Schabeld868d692019-11-17 17:28:29 +01007bazel run //:go mod tidy
Leopold Schabelb51250a2019-10-23 23:32:59 +02008bazel run //:gazelle -- update
Leopold Schabel4abadef2019-10-24 18:19:53 +02009bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro=repositories.bzl%go_repositories -prune=true