blob: f989625fe3035d674a4f8ee716ef5606d7dc65f3 [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 Schabelf8323f12020-01-07 23:26:34 +01005! bazel run //:go mod tidy
Leopold Schabelb51250a2019-10-23 23:32:59 +02006bazel run //:gazelle -- update
Leopold Schabel4abadef2019-10-24 18:19:53 +02007bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro=repositories.bzl%go_repositories -prune=true