cheekybits / genny

Elegant generics for Go
MIT License
1.71k stars 126 forks source link

bug: Prevent wiping down output file on error. #51

Closed pdrum closed 6 years ago

pdrum commented 6 years ago

In case of error, sometimes genny left over an empty file to which it was suppose to be writing the generating code. This causes some problems when running go generate again. One has remove all such files to be able to re-run go-generate. Resolves https://github.com/cheekybits/genny/issues/23

pdrum commented 6 years ago

@matryer Do you think maybe you will have time to review this sometime?