x/tools/cmd/stringer: error when also having packages imported #62419
Labels
FrozenDueToAge
Tools
This label describes issues relating to any tools in the x/tools repository.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Tried using
stringer
in order to generateString()
methods for my constant types.What did you expect to see?
An output file with the generated code, like i do when not importing any packages.
What did you see instead?
When importing a package in the targeted go source file I get an error of the type:
After removing the imports the tool works as expected.
Source Code:
The text was updated successfully, but these errors were encountered: