Skip to content

Commit

Permalink
folder creation vendor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerebrovinny committed Nov 14, 2024
1 parent 9acca77 commit cf24006
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/exec/vendor_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,11 @@ func ExecuteAtmosVendorInternal(
}
}

targetDir := filepath.Dir(targetPath)
if err := os.MkdirAll(targetDir, 0755); err != nil {
return fmt.Errorf("failed to create target directory '%s': %w", targetDir, err)
}

if err = cp.Copy(tempDir, targetPath, copyOptions); err != nil {
return err
}
Expand Down

0 comments on commit cf24006

Please sign in to comment.