Skip to content

Commit

Permalink
hack: Support multiple modules in verify-go-mod.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Augustus <foo@auggie.dev>
  • Loading branch information
justaugustus committed Mar 3, 2021
1 parent e58b03a commit 75177c7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion hack/verify-go-mod.sh
Expand Up @@ -18,5 +18,19 @@ set -o errexit
set -o nounset
set -o pipefail

REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/..

MODULES=(
buoy
)

go mod tidy
git diff --exit-code
git diff --exit-code go.*

for mod in "${MODULES[@]}"; do
MODULE_DIR="${REPO_ROOT}/${mod}"
cd "${MODULE_DIR}"
go mod tidy
git diff --exit-code go.*
cd -
done

0 comments on commit 75177c7

Please sign in to comment.