GODT-1364: Add windows CI machine for tests, and build

This commit is contained in:
Jakub
2022-01-13 16:48:33 +01:00
committed by Jakub Cuth
parent f7ed3abcfe
commit fc69b9aabb
8 changed files with 144 additions and 45 deletions

View File

@ -229,7 +229,10 @@ func (u *Users) MigrateCache(srcPath, dstPath string) error {
// (read-only is conserved). Do copy instead.
tmp, err := ioutil.TempFile(srcPath, "tmp")
if err == nil {
defer os.Remove(tmp.Name()) //nolint[errcheck]
defer func() {
tmp.Close() //nolint[errcheck]
os.Remove(tmp.Name()) //nolint[errcheck]
}()
if err := os.Rename(srcPath, dstPath); err == nil {
return nil