Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: no ENOENT when nothing retrieved to specific directory #1236

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

shetzel
Copy link
Contributor

@shetzel shetzel commented Dec 5, 2024

What does this PR do?

When no metadata was retrieved and the --output-dir flag was used, fixes the ENOENT error that was thrown.

What issues does this PR fix or reference?

@W-17355528@

@WillieRuemmele
Copy link
Contributor

QA notes


before

 ➜  sf project retrieve start --metadata ApexClass:NON --output-dir abc -o steve

 ────────────── Retrieving Metadata ──────────────

 Retrieving v60.0 metadata from [email protected] using the v62.0 SOAP API

 ✔ Preparing retrieve request 7ms
 ✔ Sending request to org 156ms
 ✔ Waiting for the org to respond 669ms
 ✔ Done 0ms

 Status: Succeeded
 Elapsed Time: 833ms

Error (ENOENT): ENOENT: no such file or directory, stat '/Users/william.ruemmele/projects/scratches/dreamhouse-lwc/abc/main/default'

after ✅

 ➜  ../../oss/plugin-deploy-retrieve/bin/run.js project retrieve start --metadata ApexClass:NON --output-dir abc -o steve

 ────────────── Retrieving Metadata ──────────────

 Retrieving v60.0 metadata from [email protected] using the v62.0 SOAP API

 ✔ Preparing retrieve request 8ms
 ✔ Sending request to org 119ms
 ✔ Waiting for the org to respond 635ms
 ✔ Done 0ms

 Status: Succeeded
 Elapsed Time: 772ms

 ›   Warning: Nothing retrieved

Warnings
┌────────────────────────┬────────────────────────────────────────────────────────┐
│ File                   │ Problem                                                │
├────────────────────────┼────────────────────────────────────────────────────────┤
│ unpackaged/package.xml │ Entity of type 'ApexClass' named 'NON' cannot be found │

@WillieRuemmele WillieRuemmele merged commit 73b79a4 into main Dec 6, 2024
41 checks passed
@WillieRuemmele WillieRuemmele deleted the sh/fix-enoent-on-retrieve branch December 6, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants