-
Notifications
You must be signed in to change notification settings - Fork 79
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
force:source:push removes entire static resource when single file removed in zipped static resource #1589
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
This issue has been linked to a new work item: W-11385865 |
I am hitting this also, the static resource is referenced so the entire source:push is being blocked saying you aren't allowed to delete the static resource even though I am simply removing one file from inside it (an update) |
Any update or ETA on W-11385865 This issue appears to completely nuke your scratch org with no way to resolve it. You get the following error over and over with no way to resolve:
|
HI @tehnrd @yippie @filiprafalowicz - the fix has been merged and will be available with Thursday's |
Summary
When I try remove single file from static resource with content type = application/zip and run sfdx force:source:push then entire static resource is being removed from the org.
Steps To Reproduce:
force-app/main/default/staticresources/ZippedResource.resource-meta.xml
force-app/main/default/staticresources/ZippedResource/file1.json
force-app/main/default/staticresources/ZippedResource/file2.json
sfdx force:source:push
. Static Resource will be pushed successfully with both files.force-app/main/default/staticresources/ZippedResource
directory.sfdx force:source:push
again.Expected result
Only file that was removed from the directory should be removed from the zipped resource in the org.
Actual result
Command output suggest that there was only that one file deleted, but if you go to your scratch org you will notice entire static resource was removed.
System Information
bash
sfdx
sfdx version --verbose --json
sf
sf version
ANDsf plugins --core
Additional information
The same works fine with
force:source:legacy:push
.The text was updated successfully, but these errors were encountered: