1
0
mirror of https://github.com/rancher/os.git synced 2025-09-03 15:54:24 +00:00

Refactor build

This commit is contained in:
Darren Shepherd
2021-08-31 11:14:03 -07:00
parent e38bab4144
commit 3040e886dc
56 changed files with 2098 additions and 292 deletions

21
scripts/validate Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
set -e
cd $(dirname $0)/..
echo Running validation
PACKAGES="$(go list ./...)"
if ! command -v golangci-lint; then
echo Skipping validation: no golangci-lint available
exit
fi
echo Running validation
echo Running: golangci-lint
golangci-lint run
echo Running: go fmt
test -z "$(go fmt ${PACKAGES} | tee /dev/stderr)"