Various QA fixes#13
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @vincentdephily. Thanks for your PR. I'm waiting for a cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
18f8829 to
e96f1fa
Compare
| targetBase := flag.Arg(0) | ||
|
|
||
| dir, err := isDir(targetBase) | ||
| targets, err := getTargets(targetBase, templates, skippedDirs, verboseLogger) |
There was a problem hiding this comment.
does this still work with single file targets?
There was a problem hiding this comment.
I'm pretty sure I had tested single-file at the time, but now I'm getting an error from the "git repository matcher" merged recently. I'll look for a fix.
There was a problem hiding this comment.
My bad, good catch.
I've restored the ability to scan single target, using a check at the start of getTargets() rather than a revert because it should simplify the later changes and because I'd like to keep main() simple.
There is no need to special-case handling a single file. Signed-off-by: Vincent de Phily <vdephily@redhat.com>
This reduces memory use by not reading all files upfront. It should parallelize better if we later want to do that. It's shorter and IMHO cleaner. Signed-off-by: Vincent de Phily <vdephily@redhat.com>
Signed-off-by: Vincent de Phily <vdephily@redhat.com>
Signed-off-by: Vincent de Phily <vdephily@redhat.com>
Signed-off-by: Vincent de Phily <vdephily@redhat.com>
e96f1fa to
a1ed959
Compare
@inteon These have been extracted from #8, should be quick to review and interesting in their own right, and must be merged first.