From 732107e356cad0ae213954bcf33bd0e7ec260744 Mon Sep 17 00:00:00 2001 From: Victor Starodub Date: Fri, 25 Mar 2016 12:59:52 +0300 Subject: [PATCH] Fixes #2: create temporary output file in the same dir as final output. --- bootstrap/bootstrap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/bootstrap.go b/bootstrap/bootstrap.go index 7393a7b..82e3e46 100644 --- a/bootstrap/bootstrap.go +++ b/bootstrap/bootstrap.go @@ -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 }