mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-12-01 07:26:05 +07:00
golint kindnetd
This commit is contained in:
@@ -23,8 +23,12 @@ source hack/build/setup-go.sh
|
||||
|
||||
# build golangci-lint
|
||||
cd "${REPO_ROOT}/hack/tools"
|
||||
go build -o "${REPO_ROOT}/bin/golangci-lint" github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||
go build -o "${REPO_ROOT}"/bin/golangci-lint github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||
cd "${REPO_ROOT}"
|
||||
|
||||
# first for the repo in general
|
||||
./bin/golangci-lint --config "${REPO_ROOT}/hack/tools/.golangci.yml" run ./...
|
||||
"${REPO_ROOT}"/bin/golangci-lint --config "${REPO_ROOT}/hack/tools/.golangci.yml" run ./...
|
||||
|
||||
# then for kindnetd module
|
||||
cd "${REPO_ROOT}/images/kindnetd"
|
||||
GOOS=linux "${REPO_ROOT}"/bin/golangci-lint --config "${REPO_ROOT}/hack/tools/.golangci.yml" run ./...
|
||||
|
||||
Reference in New Issue
Block a user