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

cmd/gofmt: better error message when gofmt is out of date #25430

Open
griesemer opened this issue May 16, 2018 · 3 comments
Open

cmd/gofmt: better error message when gofmt is out of date #25430

griesemer opened this issue May 16, 2018 · 3 comments
Assignees
Milestone

Comments

@griesemer
Copy link
Contributor

@griesemer griesemer commented May 16, 2018

It's not uncommon to run an old gofmt that may not be up-to-date with the latest syntactic changes (most recently, alias type declarations). There may be future (Go 2) changes where this becomes more acute.

When gofmt reports a syntax error, we may want to compare the gofmt (build time) version with the current "go version" and possibly report significant version discrepancies with the error ("please update gofmt").

Reminder issue to look into this.

@griesemer griesemer added this to the Go1.11 milestone May 16, 2018
@griesemer griesemer self-assigned this May 16, 2018
@randall77
Copy link
Contributor

@randall77 randall77 commented May 16, 2018

Also goimports.

@griesemer
Copy link
Contributor Author

@griesemer griesemer commented Jun 12, 2018

@randall77 Added separate issue #25856.

@ianlancetaylor ianlancetaylor modified the milestones: Go1.11, Go1.12 Jun 23, 2018
@griesemer
Copy link
Contributor Author

@griesemer griesemer commented Jun 27, 2018

The issue for importers has been addressed (#25856). We're probably not going to make major syntactic changes towards Go 2 in 1.12, so postponing for next release.

@harshavardhana harshavardhana mentioned this issue Jul 24, 2018
3 of 9 tasks complete
@ianlancetaylor ianlancetaylor modified the milestones: Go1.12, Go1.13 Dec 7, 2018
@griesemer griesemer modified the milestones: Go1.13, Go1.14 May 6, 2019
@rsc rsc modified the milestones: Go1.14, Backlog Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.