Skip to content
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

Error: Unable to process command '::add-matcher::./tmp.nA8912gdP6/problem-matcher.json' #44

Open
mblottiere opened this issue Dec 8, 2021 · 1 comment

Comments

@mblottiere
Copy link
Contributor

More often that not, the action fails seemingly randomly with the following error message:

Error: Unable to process command '::add-matcher::./tmp.nA8912gdP6/problem-matcher.json' successfully.
Error: Could not find a part of the path '/home/runner/work/XXXX/XXXX/tmp.nA8912gdP6/problem-matcher.json'.

Would it make sense to make the problem matcher opt-out?

@jnmoal
Copy link

jnmoal commented Dec 16, 2021

I ended up on the same issue, looks like there might be a race condition between this action and GitHub, because the temp folder is removed as a cleanup step, while adding a matcher on it.

Also, about the hadolint.sh script, return codes are never checked, is there any reason for this?
Please, note that shell script will continue if a command fail. To make it exit, manually check the result of the command (using $?) or put set -o errexit (which makes the script exit as soon as a command return a non zero exit code) at the top of the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants