-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hack verify.sh: clean up "base" #127754
hack verify.sh: clean up "base" #127754
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
hack/make-rules/verify.sh
Outdated
@@ -234,10 +234,9 @@ ret=0 | |||
modules=() # Pacify shellcheck | |||
kube::util::read-array modules < <(go list -f '{{.Dir}}' -m) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just realize this omits these two
./staging/src/k8s.io/code-generator/examples/hack
./staging/src/k8s.io/apiextensions-apiserver/examples/client-go/hack
do we need them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, nice catch — what prompted me to do all this initially is ./staging/src/k8s.io/code-generator/examples/hack
, so yes, we do need them!
1e5d228
to
ab72a65
Compare
This is a follow-up for commit beb51e1 ("make verify: run checks in all module hack directories"). Checking only modules known to go ends up ignoring modules which aren't dependencies, such as ./staging/src/k8s.io/code-generator/examples/hack; but the checks should be run there too. So this finds modules by looking for go.mod files. Use PWD in run-checks to record failing verification scripts instead of a hidden dependency on an externally-set variable. Signed-off-by: Stephen Kitt <skitt@redhat.com>
ab72a65
to
be0cd19
Compare
/lgtm it seems now it runs the examples
|
LGTM label has been added. Git tree hash: d9cfbecff025d52e550eed96701259eaa6e4a27d
|
/sig testing |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims, skitt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This is a follow-up for commit beb51e1 ("make verify: run checks in
all module hack directories"). Checking only modules known to go ends
up ignoring modules which aren't dependencies, such as
./staging/src/k8s.io/code-generator/examples/hack; but the checks
should be run there too. So this finds modules by looking for go.mod
files.
Use PWD in run-checks to record failing verification scripts instead
of a hidden dependency on an externally-set variable.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: