summaryrefslogtreecommitdiff
diff options
authorPawel Stolowski <stolowski@gmail.com>2018-06-29 10:47:57 +0200
committerPawel Stolowski <stolowski@gmail.com>2018-06-29 10:47:57 +0200
commit2de1bf5d8631dd843fcb4743625303912cc874e5 (patch)
tree8687dddc6f76363e1e6897a34642c10e18d038ac
parent6eb93442a07f4b453ef902b78c9132339c0535cf (diff)
Exclude vendor from nakedret check.import-go-udev
-rwxr-xr-xrun-checks2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-checks b/run-checks
index cb2c8fd899..8c5d354087 100755
--- a/run-checks
+++ b/run-checks
@@ -202,7 +202,7 @@ if [ "$STATIC" = 1 ]; then
if ! which nakedret >/dev/null; then
go get -u github.com/alexkohler/nakedret
fi
- got=$(go list ./... | grep -v '/osutil/udev/' | xargs nakedret 2>&1)
+ got=$(go list ./... | grep -v '/osutil/udev/' | grep -v '/vendor/' | xargs nakedret 2>&1)
if [ -n "$got" ]; then
echo "$got"
exit 1