You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now the git version is something that has indeed changed in the container and executing the command directly inside the container gives me the following output:
fatal: detected dubious ownership in repository at '{{ PATH }}'
To add an exception for this directory, call:
git config --global --add safe.directory {{ PATH }}
I think it would be useful to return this information as part of the kompose error output.
Similiary if I was to provide a compose file with a build context that does not point to a git repository I would be hit with the exact same error: FATA initBuildConfig failed: clibuildconfig cannot be created due to error in creating build context, getAbsBuildContext failed: exit status 128
instead of receiving the much more useful information from git:
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
I can create a PR to adjust the error output. I've seen there are 2 more git commands in the same file that could possibly also benefit from more output. Please let me know if you see any issues with my approach.
Even if no PR ends up being merged here it might help someone that you can google for this error now.
The error did not return any results in google so far.
Actual Behavior
better error output
Steps To Reproduce
No response
Kompose Version
same behaviour in 1.22.0 and 1.34.0
Docker-Compose file
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Expected Behavior
I have a gitlab pipeline that runs kompose. Recently I updated the docker image and started running into the following error from kompose:
Now this error sadly did not explain a lot to me and I was confused because the kompose version didn't even change.
After some debugging I figured out that the error comes from the git command executed in this function: https://github.com/kubernetes/kompose/blob/main/pkg/transformer/openshift/utils.go#L34
Now the git version is something that has indeed changed in the container and executing the command directly inside the container gives me the following output:
I think it would be useful to return this information as part of the kompose error output.
Similiary if I was to provide a compose file with a build context that does not point to a git repository I would be hit with the exact same error:
FATA initBuildConfig failed: clibuildconfig cannot be created due to error in creating build context, getAbsBuildContext failed: exit status 128
instead of receiving the much more useful information from git:
I can create a PR to adjust the error output. I've seen there are 2 more git commands in the same file that could possibly also benefit from more output. Please let me know if you see any issues with my approach.
Even if no PR ends up being merged here it might help someone that you can google for this error now.
The error did not return any results in google so far.
Actual Behavior
better error output
Steps To Reproduce
No response
Kompose Version
Docker-Compose file
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: