refactor: use one provider for default cache url
This commit is contained in:
2
cache/cache.go
vendored
2
cache/cache.go
vendored
@ -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
1
cache/cache_test.go
vendored
@ -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)
|
||||
|
Reference in New Issue
Block a user