1
0

refactor: use one provider for default cache url

This commit is contained in:
2023-05-13 12:08:55 +00:00
parent 60a1d19042
commit 4e77cf82d3
4 changed files with 7 additions and 6 deletions

2
cache/cache.go vendored
View File

@ -18,7 +18,7 @@ import (
"code.dumpstack.io/tools/out-of-tree/config"
)
var URL string
var URL = "https://out-of-tree.fra1.digitaloceanspaces.com/1.0.0/"
func unpackTar(archive, destination string) (err error) {
// NOTE: If you're change anything in tar command please check also

1
cache/cache_test.go vendored
View File

@ -17,7 +17,6 @@ func TestDownloadQemuImage(t *testing.T) {
}
defer os.RemoveAll(tmp)
URL = "https://out-of-tree.fra1.digitaloceanspaces.com/1.0.0/"
file := "out_of_tree_ubuntu_12__04.img"
err = DownloadQemuImage(tmp, file)