1
0
mirror of https://github.com/rancher/cli.git synced 2026-02-05 09:48:36 +01:00
Files
cli/scripts/validate
Dan Ramich 10287707a7 Update build to 1.16 and dependencies
Switch to golangci-lint
2021-03-12 17:17:39 -07:00

18 lines
272 B
Bash
Executable File

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