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

shfmt hook fail bug #5

Open
dkolepp opened this issue Apr 10, 2020 · 1 comment
Open

shfmt hook fail bug #5

dkolepp opened this issue Apr 10, 2020 · 1 comment

Comments

@dkolepp
Copy link

dkolepp commented Apr 10, 2020

I used the shfmt hook, and it flagged my files as "failing". I believe this is due to the presence of "output of any kind" - when running: shfmt -l .

However, I have SELinux enabled, and the only output from this command was:

2020/04/10 12:15:25.715497 cmd_run.go:375: restoring default SELinux context of /home/myuser/snap

When I run the suggested "diff", there is no difference. [There is output - but again, a message about restoring the SELinux context.

Note: I have shfmt installed as a snap app.

@syntaqx
Copy link
Owner

syntaqx commented Sep 25, 2020

Feel free to send a PR if changing the hook fixes your issue, I'm not able to reproduce this.

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