-
Notifications
You must be signed in to change notification settings - Fork 7
Failed to parse CLI arguments; Failed to load sh
: File not found
#52
Comments
I'm not familiar with GitLab CI, but this error seems to occur when running |
I just face the issue with this image and as the 'Dockerfile' contains 'tflint' as entrypoint and my gitlab runner is configured to allow for entrypoint overrides, I am quiet puzzled, where this issue comes from. So the combination of gitlab runner and this image seems to result in this issue for me. |
I also came across this issue which then led me to this issue. You can solve it by changing the entrypoint in your job:
|
I am encountering this issue as well. @runningman suggestion to alter the entrypoint appears to have been deprecated as a valid option in Gitlab. If you try to use it gitlab-ci.yml file to fail validation. I noticed the tflint image also fails when simply launching it with >docker run -it ghcr.io/terraform-linters/tflint-bundle:v0.45.0.0 sh or bash. |
I don't think its deprecated, it is still documented https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#override-the-entrypoint-of-an-image |
That's odd. Here is my gitlab-ci.yml file. `stages:
variables: lint: When I validate the file against the gitlab API it returns as valid.
{ Then when I add the entrypoint It returns ... { |
I finally got it to work. I restructured my gitlab-ci.yml like this. `stages:
variables: lint: Apparently the trick was to add the "name" key as a separate indented line under the "image" key. Then when I added the "entrypoint" line below that it returned as a valid file. |
Hi,
thanks a lot for your work on the tflint image!
I am running the image on the latest version of gitlab-runner and do get:
The logs of the container are empty.
This is how the gitlab pipeline stage looks like:
The text was updated successfully, but these errors were encountered: