-
Notifications
You must be signed in to change notification settings - Fork 88
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
[BUG] 4.2 fails with no such file or directory #91
Comments
Got the same issue here 👍🏻 |
This can be debugged by forking the project and modifying https://github.com/creyD/prettier_action/blob/master/entrypoint.sh#L4 That will print out every bash command before it is executed, which should reveal what file is not found. |
Probably the first thing that the Better not to assume anything about the host environment. |
It looks like a possible solution from the user's perspective for this issue would be to use absolute paths as I mentioned in #94 (comment). There's something funny going on with relative paths. |
solved in creyD/[email protected] |
@brandart works with me. So this "works for me", too. Thanks! |
seems like I was wrong and thought that I ran the prettier action (which was comment out) but in the end, I ran the normal prettier. When trying it again it still fails with the same error message. So I think this issue is not fixed then. :( |
Linking what might be related issues, based on either the prettier executable not being found or a missing plugin causing failure. Are these the same environment issues?
For our use case (see this comment) we were looking to fail on check for a subfolder, everything is working locally but the action fails because it cannot find prettier. UPDATE: upgraded to 4.3 after reading through some other comments and it now recognizes prettier in the action. It's still not working though, locally I see one file that isn't formatted correctly, but the action reports 0 files. Does the action respect the local config files in the repo? Confused at why it's so tough just to run a check on a subfolder, more details in this PR comment: https://github.com/casey/ord/pull/1594#issuecomment-1439923087 |
…atly (#83) * Updated to prittier version 4.3 to deal with a bug described here: creyD/prettier_action#91 * Reformatted JSON files --------- Co-authored-by: Tritium-VLK <[email protected]>
What exactly happened?
Steps to reproduce the behavior:
What should've happened?
It should have succeeded or failed with a clear error message.
How did it look?
Where did you encounter the problem?
The text was updated successfully, but these errors were encountered: