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.
x/tools/cmd/gorename: fails due DO NOT EDIT comment #28175
It's not possible to rename using gorename if I have generated mock files. I can make it work only by manually removing
There is -force flag which is a bit scary and I don't want to break my program.
Would be great to have some flag like
What version of Go are you using (
Even if it is the way it supposed to work - I like that gorename stays on the safe side - it can break a flow when somebody wants to change declaration that happens outside of "DO NOT EDIT" files. But do people usually get stumbled onto this often?
@anjmao can you describe exactly how did you use gorename and did you find the fix for this situation at all?
@anjmao I think you are after:
As you say,