mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
Fixes #2: create temporary output file in the same dir as final output.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user