W-17355528 fix: no ENOENT when nothing retrieved to specific directory#1236
Merged
WillieRuemmele merged 1 commit intomainfrom Dec 6, 2024
Merged
W-17355528 fix: no ENOENT when nothing retrieved to specific directory#1236WillieRuemmele merged 1 commit intomainfrom
WillieRuemmele merged 1 commit intomainfrom
Conversation
WillieRuemmele
approved these changes
Dec 6, 2024
Contributor
QA notesbefore ➜ 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 │ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
When no metadata was retrieved and the
--output-dirflag was used, fixes the ENOENT error that was thrown.What issues does this PR fix or reference?
@W-17355528@