fix: filename is already full path
This commit is contained in:
parent
05f210494a
commit
dc8d667930
2
cache/cache.go
vendored
2
cache/cache.go
vendored
@ -82,5 +82,5 @@ func DownloadDebianCache(cachePath string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
return os.Rename(filepath.Join(tmp, resp.Filename), cachePath)
|
return os.Rename(resp.Filename, cachePath)
|
||||||
}
|
}
|
||||||
|
2
cache/cache_test.go
vendored
2
cache/cache_test.go
vendored
@ -29,7 +29,7 @@ func TestDownloadQemuImage(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestDownloadDebianCache(t *testing.T) {
|
func TestDownloadDebianCache(t *testing.T) {
|
||||||
tmp, err := ioutil.TempDir("", "out-of-tree_")
|
tmp, err := fs.TempDir()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user