aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/hashicorp/go-getter/get_file_unix.go
diff options
context:
space:
mode:
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.go4
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
5import ( 5import (
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
52func (g *FileGetter) GetFile(dst string, u *url.URL) error { 51func (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}