mirror of
https://github.com/rancher/norman.git
synced 2025-04-27 19:15:07 +00:00
16 lines
251 B
Bash
Executable File
16 lines
251 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
echo Running validation
|
|
|
|
if ! command -v golangci-lint; then
|
|
echo Skipping validation: no golangci-lint available
|
|
exit
|
|
fi
|
|
|
|
echo Running: golangci-lint
|
|
export "GOROOT=$(go env GOROOT)"
|
|
golangci-lint run
|