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

Running golines -w * errors when it encounters go.mod #150

Open
echarrod opened this issue Sep 30, 2024 · 0 comments
Open

Running golines -w * errors when it encounters go.mod #150

echarrod opened this issue Sep 30, 2024 · 0 comments

Comments

@echarrod
Copy link
Contributor

I am running:

golines -w --max-len=120 * 

But get an error when this encounteres my go.mod file:
FATAL Error formatting source: exit status 2

I confirmed this by doing:

 golines -w --debug go.mod
[2024-09-30 14:59:11] DEBUG Processing file go.mod
[2024-09-30 14:59:11] FATAL Error formatting source: exit status 2

If I want to run on all go files in my repo, should I be calling the command differently?
Or alternatively, can we restrict golines to only run against *.go files?

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

1 participant