main: close ar file before moving it
Moving a file is not allowed on Windows when a program still has the file open.
Этот коммит содержится в:
родитель
5b0b35f9e4
коммит
5ca2e1322c
1 изменённых файлов: 1 добавлений и 0 удалений
|
@ -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,
|
// Give the caller the resulting file. The callback must copy the file,
|
||||||
// because after it returns the temporary directory will be removed.
|
// because after it returns the temporary directory will be removed.
|
||||||
|
arfile.Close()
|
||||||
return callback(arpath)
|
return callback(arpath)
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче