Fixes #2: create temporary output file in the same dir as final output.

This commit is contained in:
Victor Starodub
2016-03-25 12:59:52 +03:00
parent 4534d5e7c5
commit 732107e356
+1 -1
View File
@@ -127,7 +127,7 @@ func (g *Generator) Run() error {
defer os.Remove(path)
}
f, err := ioutil.TempFile("", "easyjson-out")
f, err := os.Create(g.OutName + ".tmp")
if err != nil {
return err
}