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: throw when expected file is ENOENT #1062

Merged
merged 1 commit into from
Aug 3, 2023
Merged

Conversation

mshanemc
Copy link
Contributor

@mshanemc mshanemc commented Aug 1, 2023

What does this PR do?

SDR would exit streams early on ENOENT without throwing an error
this checks file existence before doing a readStream from the file

[this would be more efficient, on the happy path, to catch this error but it seems to buried inside nested streams and this is a simple fix. It would error much earlier in the convert process if the error is going to happen. Perf benchmarks suggest it has a negative impact]

What issues does this PR fix or reference?

forcedotcom/cli#2011
@W-12769219@

@mshanemc mshanemc requested a review from a team as a code owner August 1, 2023 20:12
@shetzel
Copy link
Contributor

shetzel commented Aug 3, 2023

With the changes I now see:
~/dev/salesforcecli/plugin-deploy-retrieve/bin/dev project deploy start Error (1): Component conversion failed: File not found: ...dreamhouse-lwc/force-app/main/default/classes/FileUtilities.cls-meta.xml

@shetzel shetzel merged commit ad3f441 into main Aug 3, 2023
3 checks passed
@shetzel shetzel deleted the sm/missing-file-push-error branch August 3, 2023 17:34
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.

3 participants