diff --git a/copy_dir.go b/copy_dir.go index 035591bf2..7578c52ac 100644 --- a/copy_dir.go +++ b/copy_dir.go @@ -5,6 +5,7 @@ package getter import ( "context" + "errors" "fmt" "os" "path/filepath" @@ -24,6 +25,8 @@ func copyDir(ctx context.Context, dst string, src string, ignoreDot bool, disabl // We can safely evaluate the symlinks here, even if disabled, because they // will be checked before actual use in walkFn and copyFile var err error + fmt.Println("copyDir - 27", src, dst) + return errors.New("copyDir is not implemented in this context") resolved, err := filepath.EvalSymlinks(src) if err != nil { return err diff --git a/get_http.go b/get_http.go index 809369951..dcf114eb6 100644 --- a/get_http.go +++ b/get_http.go @@ -169,6 +169,7 @@ func newLimitedWrappedReaderCloser(r io.ReadCloser, limit int64) io.ReadCloser { } func (g *HttpGetter) Get(dst string, u *url.URL) error { + fmt.Println("wwww again started the test") ctx := g.Context() // Optionally disable any X-Terraform-Get redirects. This is reccomended for usage of @@ -296,6 +297,7 @@ func (g *HttpGetter) Get(dst string, u *url.URL) error { // If there is a subdir component, then we download the root separately // into a temporary directory, then copy over the proper subdir. + fmt.Println("wwwww reached before SourceDirSubdir check") source, subDir := SourceDirSubdir(source) var opts []ClientOption @@ -362,9 +364,10 @@ func (g *HttpGetter) Get(dst string, u *url.URL) error { // This is especially important to enforce a limit on X-Terraform-Get redirects // which could be setup, if configured, at the top of this function. opts = append(opts, WithContext(ctx)) - + fmt.Println("wwwww reached before subdir check") if subDir != "" { // We have a subdir, time to jump some hoops + fmt.Println("wwwww reached in subdir") return g.getSubdir(ctx, dst, source, subDir, opts...) } diff --git a/get_http_test.go b/get_http_test.go index aae84228c..80116ce51 100644 --- a/get_http_test.go +++ b/get_http_test.go @@ -158,6 +158,7 @@ func TestHttpGetter_metaSubdir(t *testing.T) { u.Path = "/meta-subdir" // Get it! + fmt.Println("wwww started the test") if err := g.Get(dst, &u); err != nil { t.Fatalf("err: %s", err) }