-
Notifications
You must be signed in to change notification settings - Fork 117
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
Sm/archiver-bug #768
Sm/archiver-bug #768
Conversation
@@ -408,7 +408,11 @@ export class MetadataApiDeploy extends MetadataTransfer<MetadataApiDeployStatus, | |||
const zip = createArchive('zip', { zlib: { level: 9 } }); | |||
// anywhere not at the root level is fine | |||
zip.directory(this.options.mdapiPath, 'zip'); | |||
await zip.finalize(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was changed in here https://github.com/forcedotcom/source-deploy-retrieve/pull/748/files#diff-241374a8e829853ad35d675aec9a8689aa15caa58582f8270c9e4c3de08e3aecL390
the linter/types are unreliable.
// the typings on it are misleading and unintended. More info https://github.com/archiverjs/node-archiver/issues/476 | ||
// If you await it, bad things happen, like the convert process exiting silently. https://github.com/forcedotcom/cli/issues/1791 | ||
// leave the void as it is | ||
void zip.finalize(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a shame gifs don't work in github comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
QAI Results look good ✔️ |
What does this PR do?
don't await for archiver. See comments for explanation
What issues does this PR fix or reference?
@W-12050345@ forcedotcom/cli#1802
QA/Repro
use https://github.com/mshanemc/nestedFolders, then switch to the sdr-768 branch.
it's already got a mdapiOut folder with an email template which contains a very, very large attachment (as suggested by the customer on forcedotcom/cli#1802
create an org
yarn link SDR into plugin-source, then
../../plugin-source/bin/dev force:mdapi:deploy --deploydir mdapiOut --checkonly --json
you'll see the sfdx version of the command silently exit, but the version with this SDR branch works as expected.