-
Notifications
You must be signed in to change notification settings - Fork 78
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
CustomLabel String replacement not working correctly with --manifest flag #2755
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. |
Excellent repro steps! Makes it so much easier to understand the problem. Thank you! If you compare the manifests that are actually generated by those 2 commands (use the
I modified So there is at least a good workaround. However, this seems like it could be improved. I tried this command: |
This issue has been linked to a new work item: W-15262083 |
Thanks a lot @shetzel ! Yes, that workaround does indeed get the desired behavior. However, I'm glad that a fix is being worked on. We are using this in a CI pipeline and currently I would have to do some script gymnastics to add the CustomLabel type inside the package.xml. Not a biggie but if a fix is in the works, we can deal with it until it's released. We don't deploy CustomLabels every day. I appreciate the help! Thanks! |
@cnwork - should make it into the CLI release candidate tomorrow. |
This issue is fixed in version 2.34.6 of Salesforce CLI. |
Summary
When using the
sf project deploy start --manifest package.xml
, custom labels inside the package.xml will not get replaced.However when using
sf project deploy start --source-dir changed-sources
, the custom labels inside the folder do get replaced.Steps To Reproduce
Repo: Forked dreamhouse-lwc
Use git-delta tool to generate the delta between the last two commits:
This should generate the following file structure:
changed-sources/force-app/main/default/labels/CustomLabels.labels-meta.xml:
and changed-sources/package/package.xml
1. Run deployment with
--source-dir
Deploy result
2. Run deployment with
--manifest
Expected result
Same as for above when using the
--source-dir
flagActual result
System Information
Additional information
Comparing the two results I can see that there's that one extra line in the Validated metadata that is showing the Unchanged CustomLabels file.
| Unchanged CustomLabels CustomLabels changed-sources/force-app/main/default/labels/CustomLabels.labels-meta.xml
Other than this and of course, the Metadata Replacement results which clearly show that those 2 labels have been changed
there's nothing else that's different.
I did deploy in both cases and the actual results in the org match the validate commands' output.
I also added manually to the package.xml another type like this:
And this did work but it caused a full deployment of all CustomLabels, which is really not desirable.
Expected final result
Deployment using the
sf project deploy start --manifest package.xml
should have the exact same behavior assf project deploy start --source-dir changed-sources
.I'm happy to provide any other details.
The text was updated successfully, but these errors were encountered: