build: Fix proto builder on Windows

This commit is contained in:
Audrius Butkevicius
2016-11-03 22:06:51 +00:00
parent 3418497f3d
commit 14937e7dd2
10 changed files with 164 additions and 158 deletions

View File

@@ -35,6 +35,8 @@ func main() {
if err := formatProto(in, out); err != nil {
log.Fatal(err)
}
in.Close()
out.Close()
if err := os.Rename(file+".tmp", file); err != nil {
log.Fatal(err)
}