Skip to content

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 epic.42820d47c738@orgfarm.out 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 epic.42820d47c738@orgfarm.out 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
@iowillhoit iowillhoit changed the title fix: no ENOENT when nothing retrieved to specific directory W-17355528 fix: no ENOENT when nothing retrieved to specific directory Jan 27, 2025
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