aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/hashicorp/go-getter/get.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/hashicorp/go-getter/get.go')
-rw-r--r--vendor/github.com/hashicorp/go-getter/get.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/vendor/github.com/hashicorp/go-getter/get.go b/vendor/github.com/hashicorp/go-getter/get.go
index c3236f5..e6053d9 100644
--- a/vendor/github.com/hashicorp/go-getter/get.go
+++ b/vendor/github.com/hashicorp/go-getter/get.go
@@ -18,6 +18,8 @@ import (
18 "os/exec" 18 "os/exec"
19 "regexp" 19 "regexp"
20 "syscall" 20 "syscall"
21
22 cleanhttp "github.com/hashicorp/go-cleanhttp"
21) 23)
22 24
23// Getter defines the interface that schemes must implement to download 25// Getter defines the interface that schemes must implement to download
@@ -49,8 +51,13 @@ var Getters map[string]Getter
49// syntax is schema::url, example: git::https://foo.com 51// syntax is schema::url, example: git::https://foo.com
50var forcedRegexp = regexp.MustCompile(`^([A-Za-z0-9]+)::(.+)$`) 52var forcedRegexp = regexp.MustCompile(`^([A-Za-z0-9]+)::(.+)$`)
51 53
54// httpClient is the default client to be used by HttpGetters.
55var httpClient = cleanhttp.DefaultClient()
56
52func init() { 57func init() {
53 httpGetter := &HttpGetter{Netrc: true} 58 httpGetter := &HttpGetter{
59 Netrc: true,
60 }
54 61
55 Getters = map[string]Getter{ 62 Getters = map[string]Getter{
56 "file": new(FileGetter), 63 "file": new(FileGetter),