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/go: go generate line ending problem #9730
Labels
Comments
propag
changed the title
go generate line ending problem on windows
go generate line ending problem
Jan 29, 2015
Can you please provide |
adg
changed the title
go generate line ending problem
cmd/go: go generate line ending problem
Jan 29, 2015
Here full main.go package main
//go:generate go
import "fmt"
func main() {
fmt.Println("Hello Go World")
} |
I sent this: https://go-review.googlesource.com/3604 @propag do you want to try building Go from source using revision 378716f? Run:
And then try running go generate against that file. |
Good! work nice! |
This has already been fixed on tip. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
on windows line ending (\r\n)
main.go:3: running "go\r": exec: "go\r": executable file not found in %PATH%
on unix line ending (\n), problem not happened
it seems that go generate do not handle line ending appropriately.
The text was updated successfully, but these errors were encountered: