diff --git a/pkg/mirror/mirror.go b/pkg/mirror/mirror.go index 291761f..cd60f8d 100644 --- a/pkg/mirror/mirror.go +++ b/pkg/mirror/mirror.go @@ -58,7 +58,7 @@ func PushIndexToRegistry(image v1.ImageIndex, imageName string) error { func SaveImageAsOCILayout(image v1.Image, path string) error { // Save the image to the local filesystem - err := os.MkdirAll(path, os.FileMode(0755)) + err := os.MkdirAll(path, os.FileMode(0777)) if err != nil { return fmt.Errorf("failed to create directory: %w", err) } @@ -72,7 +72,7 @@ func SaveImageAsOCILayout(image v1.Image, path string) error { func SaveIndexAsOCILayout(image v1.ImageIndex, path string) error { // Save the index to the local filesystem - err := os.MkdirAll(path, os.FileMode(0755)) + err := os.MkdirAll(path, os.FileMode(0777)) if err != nil { return fmt.Errorf("failed to create directory: %w", err) }