Skip to content

cmd/go: go generate treats \r as part of command text #9264

@boombuler

Description

@boombuler

Just tested the new "go generate" command. I'm using a windows machine and so my line endings are \r\n and not just \n.
so if I put "//go:generate dosomething" in my source code and run "go generate" it executed "dosomething\r" which can not be found. (Tested with go1.4.windows-amd64 release)
Sorry for submitting if this is expected behavior...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions