influx-cli/etc/checktidy.sh
Daniel Moran 8c062cacf0
feat: set up project skeleton for new CLI (#1)
* docs: fill in README
* feat: initial setup of CLI, with help + version commands
* build: add linters and Makefile
* build: add initial CircleCI workflow
2021-04-12 13:39:09 -04:00

12 lines
188 B
Bash
Executable File

#!/bin/bash
set -e
export GO111MODULE=on
go mod tidy
if ! git --no-pager diff --exit-code -- go.mod go.sum; then
>&2 echo "modules are not tidy, please run 'go mod tidy'"
exit 1
fi