1
0
Fork 0

fix: filename is already full path

timestamps
dump_stack() 2023-05-13 12:50:26 +00:00
parent 05f210494a
commit dc8d667930
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 2 additions and 2 deletions

2
cache/cache.go vendored
View File

@ -82,5 +82,5 @@ func DownloadDebianCache(cachePath string) (err error) {
return
}
return os.Rename(filepath.Join(tmp, resp.Filename), cachePath)
return os.Rename(resp.Filename, cachePath)
}

2
cache/cache_test.go vendored
View File

@ -29,7 +29,7 @@ func TestDownloadQemuImage(t *testing.T) {
}
func TestDownloadDebianCache(t *testing.T) {
tmp, err := ioutil.TempDir("", "out-of-tree_")
tmp, err := fs.TempDir()
if err != nil {
return
}