Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/gofmt: comment lines broken at new position #18782
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
This appears to be a regression from 1.7. The problem doesn't appear with https://play.golang.org/p/iptkp861qM (simple repro case) in the playground. But with 1.8 we get:
Likely related to https://go-review.googlesource.com/#/c/33016/ (need to confirm).
It's probably too late to get this fixed for 1.8 unless there's a trivial mistake. Unrolling the previous change (if it's the culprit) would expose two other issues that it fixed.
@kortschak Not a completely satisfactory "solution", but a work-around: The following source
(first comment on same line as /*) will be preserved. Still trying to see if there's a simple (1.8-acceptable solution).