Skip to content

Commit 8672410

Browse files
authored
Merge pull request #2302 from z1cheng/fix_lint_error
Add -buildvcs=false flag to fix golint script
2 parents f544a46 + 0ebf70b commit 8672410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/verify-golint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ cd "${KUBE_ROOT}"
2626
# See configuration file in ${KUBE_ROOT}/.golangci.yml.
2727
mkdir -p cache
2828

29-
docker run --rm -v $(pwd)/cache:/cache -v $(pwd):/app --security-opt="label=disable" -e GOLANGCI_LINT_CACHE=/cache -w /app "golangci/golangci-lint:$VERSION" golangci-lint run
29+
docker run --rm -v $(pwd)/cache:/cache -v $(pwd):/app --security-opt="label=disable" -e GOLANGCI_LINT_CACHE=/cache -e GOFLAGS="-buildvcs=false" -w /app "golangci/golangci-lint:$VERSION" golangci-lint run
3030

3131
# ex: ts=2 sw=2 et filetype=sh

0 commit comments

Comments
 (0)