errors accumulating remote directories are not reported in certain situations #5692
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened?
Under these conditions ...
... the error from the third step is not reported.
The first two conditions are identical to #5540, so I'll quote the relevant bits here:
Unlike #5540, the remote repository is successfully cloned, so the code proceeds to call
kt.accumulateDirectory()
. If that accumulation fails for any reason, a decision is made how to report the failure. But iferrF
(from earlier in the method) was a malformed YAML error, the error fromkt.accumulateDirectory()
is dropped:kustomize/api/internal/target/kusttarget.go
Lines 451 to 457 in e244b83
The result is that the user does not receive any information about why kustomize failed to accumulate the directory. They instead see an error like:
What did you expect to happen?
I expect to see the error from accumulating the directory - something like:
How can we reproduce it (as minimally and precisely as possible)?
I unfortunately don't have a fully working reproducer I can share :-/
Expected output
No response
Actual output
No response
Kustomize version
v5.4.1
Operating system
None
The text was updated successfully, but these errors were encountered: