Skip to content

Commit

Permalink
restore condition to continue vendor process if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerebrovinny committed Nov 15, 2024
1 parent 3159dbd commit 59a9602
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/exec/vendor_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func ExecuteVendorPullCommand(cmd *cobra.Command, args []string) error {

// Check `vendor.yaml`
vendorConfig, vendorConfigExists, foundVendorConfigFile, err := ReadAndProcessVendorConfigFile(cliConfig, cfg.AtmosVendorConfigFileName)
if err != nil {
if vendorConfigExists && err != nil {
return err
}

Expand Down Expand Up @@ -551,11 +551,6 @@ 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 59a9602

Please sign in to comment.