1
0
mirror of https://github.com/rancher/cli.git synced 2026-02-05 09:48:36 +01:00
Files
cli/scripts/validate

18 lines
272 B
Plaintext
Raw Permalink Normal View History

2016-05-26 20:00:15 -07:00
#!/bin/bash
set -e
cd $(dirname $0)/..
echo Running: golangci-lint
golangci-lint run
2016-05-26 20:00:15 -07:00
echo Tidying up modules
go mod tidy
2018-01-31 15:21:11 -07:00
echo Verifying modules
go mod verify
2018-01-31 15:21:11 -07:00
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
echo "Encountered dirty repo!"
exit 1
fi