diff --git a/pkg/stacker/import.go b/pkg/stacker/import.go index 377b64ff..f4e334da 100644 --- a/pkg/stacker/import.go +++ b/pkg/stacker/import.go @@ -135,6 +135,8 @@ func importFile(imp string, cacheDir string, hash string, idest string, mode *fs dest = cacheDir } + //fmt.Printf("dest:%v\n", dest) + if err := os.MkdirAll(dest, 0755); err != nil { return "", errors.Wrapf(err, "failed making cache dir") } @@ -181,6 +183,8 @@ func importFile(imp string, cacheDir string, hash string, idest string, mode *fs destpath = path.Join(cacheDir, d.Path()) } + //fmt.Printf("destpath:%v\n", destpath) + if d.New().IsDir() { fi, err := os.Lstat(destpath) if err != nil { diff --git a/test/convert.bats b/test/convert.bats index 90dc6ee2..e610dad3 100644 --- a/test/convert.bats +++ b/test/convert.bats @@ -48,7 +48,6 @@ EOF } @test "alpine" { - skip_slow_test git clone https://github.com/alpinelinux/docker-alpine.git chmod -R a+rwx docker-alpine cd docker-alpine @@ -63,7 +62,6 @@ EOF } @test "elasticsearch" { - skip_slow_test git clone https://github.com/elastic/dockerfiles.git chmod -R a+rwx dockerfiles cd dockerfiles/elasticsearch @@ -77,7 +75,6 @@ EOF } @test "python" { - skip_slow_test git clone https://github.com/docker-library/python.git cd python/3.11/alpine3.17 chmod -R a+rw .