-
Notifications
You must be signed in to change notification settings - Fork 90
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
Lock the version of gofmt or stop using it as a lint check #459
Comments
@mdittmer @lukebjerring @foolip please vote. I vote for dropping gofmt from presubmit checks (I don't want to vendor such a basic tool in the project and I trust everyone using |
It could well happen that I send a PR that makes some string longer that I never even try to compile or run, or reformat. Best I think would be if the Travis job just pushed a commit to fix the problem, then it doesn't matter if versions disagree. This would require a little bit of work though, and would change the PR being tested. Worst case would be infinite reformat loop due to some bug :) |
We can drop gofmt. vscode does it automatically anyway, and most (if not all) of us use that. |
Fixed by #558 |
As it turns out, locking the version of I support dropping |
Today when working on #439 , I found the gofmt on my machine and Travis disagreed with each other. After a bit of research, it turns out this is pretty much WAI:
https://tip.golang.org/pkg/go/format/
And by the way, this warning is only added recently (Go 1.11, which hasn't been released yet). golang/go#26228
The text was updated successfully, but these errors were encountered: