-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
Running pre-commit hooks reports ‘Passed’ upon execution failure #2646
Comments
I will need more details to be able to reproduce this issue. What platform are you running on? What is the relevant portion of your |
I use Podman, which is rootless. I'm running under an up-to-date macOS. I'm not asking to debug the underlying issue, I can understand the failure, since Podman has some stricter security settings than Docker Desktop out-of-the-box. My issue is about MegaLinter and/or pre-commit not detecting a failure when there is one. Should the exit status of pre-commit be non-zero, then the current ‘Passed’ status is problematic. |
If you can not write into your folder, you can define variable |
Ohhh, yeah, I could definitely see MegaLinter not working with Podman since our images are rootful. I am not at my desk right now, but I will try to reproduce the issue using Podman. It would still be helpful to know whether pre-commit exits non-zero so we can evaluate whether this issue can or should be fixed in MegaLinter and/or pre-commit. Another way of narrowing it down would be to run the command pre-commit is running directly. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
@Kurt-von-Laven I'm curious about your findings, I'm also using podman and I can't run megalinter with it (Maybe I'll start a new issue for this). |
Describe the bug
See title.
pre-commit 3.3.1
Pulling
docker.io/oxsecurity/megalinter:v6
again does not update to a more recent container image.To reproduce
Steps to reproduce the behavior:
Expected behavior
Running pre-commit hooks reports ‘Failed’ or some other non-‘Passed’ result upon execution failure.
The text was updated successfully, but these errors were encountered: