fix: fix nested dirs in example tars (#5447)

This commit is contained in:
Dean Sheather
2022-12-17 02:19:19 +10:00
committed by GitHub
parent fcd5511403
commit 0c0e3f0e4d
3 changed files with 17 additions and 8 deletions
+1 -1
View File
@@ -51,6 +51,6 @@ func TestSubdirs(t *testing.T) {
entryPaths[header.Typeflag] = append(entryPaths[header.Typeflag], header.Name)
}
require.Subset(t, entryPaths[tar.TypeDir], []string{"./", "images/"})
require.Subset(t, entryPaths[tar.TypeDir], []string{"images"})
require.Subset(t, entryPaths[tar.TypeReg], []string{"README.md", "main.tf", "images/base.Dockerfile"})
}