-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Key error messages are not available in some condition #2279
Comments
please fix this. For now is there any way to get to those error-messages? |
Still a problem |
This is really hard to debug indeed... Any advice for how to troubleshoot this? Running and getting the following:
|
I solved it by add option kustomize build --load_restrictor none </your/path> |
Same error for me even with |
Consider using https://github.com/hashicorp/go-multierror to aggregate errors. |
/assign |
Kustomize may encounter multiple errors during build, but sometimes only the last one is displayed. This makes it hard for user find out the root cause.
For example, given the error message below
The user has no idea about the actual error
subdir "kustomize-example-master" not found
returned from remote getter.The limitation is cause by
newLoaderAtConfirmedDir
, which never returns an error. The error detection is delayed to later stage, where the previous errors (in git clone or remote get) are no longer available.We need a better mechanism to show the error stack to make kustomize more user friendly.
The text was updated successfully, but these errors were encountered: