From 5ca2e1322c33b0e2c0eaff95ae34b0a12c1d6cc3 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sat, 27 Apr 2019 17:30:19 +0200 Subject: [PATCH] main: close ar file before moving it Moving a file is not allowed on Windows when a program still has the file open. --- builtins.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtins.go b/builtins.go index a34001a7..6ab5198d 100644 --- a/builtins.go +++ b/builtins.go @@ -294,5 +294,6 @@ func compileBuiltins(target string, callback func(path string) error) error { // Give the caller the resulting file. The callback must copy the file, // because after it returns the temporary directory will be removed. + arfile.Close() return callback(arpath) }