Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
2dc3509b
Unverified
Commit
2dc3509b
authored
Apr 27, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 27, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76867 from xichengliudui/fixshellcheckfailures-29
fix shellcheck failures on vet.sh
parents
c88b7cdd
a4a4abd4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
.shellcheck_failures
hack/.shellcheck_failures
+0
-1
vet.sh
hack/make-rules/vet.sh
+5
-3
No files found.
hack/.shellcheck_failures
View file @
2dc3509b
...
...
@@ -27,7 +27,6 @@
./hack/make-rules/test.sh
./hack/make-rules/update.sh
./hack/make-rules/verify.sh
./hack/make-rules/vet.sh
./hack/pin-dependency.sh
./hack/test-integration.sh
./hack/update-vendor.sh
...
...
hack/make-rules/vet.sh
View file @
2dc3509b
...
...
@@ -18,7 +18,7 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/../..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/../..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
cd
"
${
KUBE_ROOT
}
"
...
...
@@ -47,7 +47,9 @@ done
if
[[
${#
targets
[@]
}
-eq
0
]]
;
then
# Do not run on third_party directories or generated client code or build tools.
targets
=
$(
go list
-e
./... | egrep
-v
"/(build|third_party|vendor|staging|clientset_generated)/"
)
while
IFS
=
''
read
-r
line
;
do
targets+
=(
"
${
line
}
"
)
done
< <
(
go list
-e
./... |
grep
-E
-v
"/(build|third_party|vendor|staging|clientset_generated)/"
)
fi
go vet
"
${
goflags
[@]
:+
${
goflags
[@]
}}
"
${
targets
[@]
}
go vet
"
${
goflags
[@]
:+
${
goflags
[@]
}}
"
"
${
targets
[@]
}
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment