File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ function run-checks {
199
199
else
200
200
echo -e " ${color_red} FAILED${color_norm} ${check_name} \t${elapsed} s"
201
201
ret=1
202
- FAILED_TESTS+=(" ${base } /${t} " )
202
+ FAILED_TESTS+=(" ${PWD } /${t} " )
203
203
fi
204
204
done
205
205
}
@@ -229,15 +229,18 @@ if ${QUICK} ; then
229
229
echo " Running in quick mode (QUICK=true). Only fast checks will run."
230
230
fi
231
231
232
+ shopt -s globstar
232
233
export API_KNOWN_VIOLATIONS_DIR=" ${KUBE_ROOT} " /api/api-rules
233
234
ret=0
234
- modules=() # Pacify shellcheck
235
- kube::util::read-array modules < <( go list -f ' {{.Dir}}' -m)
236
- for module in " ${modules[@]} " ; do
237
- base=${module%/ go.mod}
238
- if [ -d " $base /hack" ]; then
239
- kube::util::run-in " $base " run-checks " hack/verify-*.sh" bash
240
- kube::util::run-in " $base " run-checks " hack/verify-*.py" python3
235
+ # Modules are discovered by looking for go.mod rather than asking go
236
+ # to ensure that modules that aren't part of the workspace and/or are
237
+ # not dependencies are checked too.
238
+ # . and staging are listed explicitly here to avoid _output
239
+ for module in ./go.mod ./staging/** /go.mod; do
240
+ module=" ${module%/ go.mod} "
241
+ if [ -d " $module /hack" ]; then
242
+ kube::util::run-in " $module " run-checks " hack/verify-*.sh" bash
243
+ kube::util::run-in " $module " run-checks " hack/verify-*.py" python3
241
244
fi
242
245
done
243
246
missing-target-checks
You can’t perform that action at this time.
0 commit comments