diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/github.com/hashicorp/go-getter/get_file_unix.go | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/github.com/hashicorp/go-getter/get_file_unix.go')
-rw-r--r-- | vendor/github.com/hashicorp/go-getter/get_file_unix.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/hashicorp/go-getter/get_file_unix.go b/vendor/github.com/hashicorp/go-getter/get_file_unix.go index c89a2d5..c3b28ae 100644 --- a/vendor/github.com/hashicorp/go-getter/get_file_unix.go +++ b/vendor/github.com/hashicorp/go-getter/get_file_unix.go | |||
@@ -4,7 +4,6 @@ package getter | |||
4 | 4 | ||
5 | import ( | 5 | import ( |
6 | "fmt" | 6 | "fmt" |
7 | "io" | ||
8 | "net/url" | 7 | "net/url" |
9 | "os" | 8 | "os" |
10 | "path/filepath" | 9 | "path/filepath" |
@@ -50,6 +49,7 @@ func (g *FileGetter) Get(dst string, u *url.URL) error { | |||
50 | } | 49 | } |
51 | 50 | ||
52 | func (g *FileGetter) GetFile(dst string, u *url.URL) error { | 51 | func (g *FileGetter) GetFile(dst string, u *url.URL) error { |
52 | ctx := g.Context() | ||
53 | path := u.Path | 53 | path := u.Path |
54 | if u.RawPath != "" { | 54 | if u.RawPath != "" { |
55 | path = u.RawPath | 55 | path = u.RawPath |
@@ -98,6 +98,6 @@ func (g *FileGetter) GetFile(dst string, u *url.URL) error { | |||
98 | } | 98 | } |
99 | defer dstF.Close() | 99 | defer dstF.Close() |
100 | 100 | ||
101 | _, err = io.Copy(dstF, srcF) | 101 | _, err = Copy(ctx, dstF, srcF) |
102 | return err | 102 | return err |
103 | } | 103 | } |