Deleting a single CustomLabel component deletes the whole CustomLabels.labels-meta.xml file #2118
Labels
bug
Issue or pull request that identifies or fixes a bug
investigating
We're actively investigating this issue
Summary
When deleting a single
CustomLabel
component (e.g.CustomLabel:DeleteMe
)sfdx force source delete -m CustomLabel:DeleteMe
sfdx force source pull
afterwardsthe whole
CustomLabels.labels-meta.xml
is being deleted from disk.Steps To Reproduce:
Repository to reproduce: mdapi-issues/delete-customlabel
See GitHub Action workflow definition and runs, e.g. this one
sfdx force source delete -m CustomLabel:DeleteMe --no-prompt
Expected result
The
CustomLabels.labels-meta.xml
should still exist on disk with the componentCustomLabel:DeleteMe
being removed.Actual result
The whole
CustomLabels.labels-meta.xml
file is deleted with all the otherCustomLabel
componentsSystem Information
Which shell/terminal are you using? (e.g. bash, zsh, powershell 5, powershell 7, cmd.exe, etc.)
bash and zsh
7.199.7
and7.198.7
Additional information
As far as I know
CustomLabels
was not decomposed by choice because of performance issues with lots of files (on Windows?).Is this still relevant?
I'd personally appreciate having CustomLabels decomposed by default or at least with a flag/setting.
The text was updated successfully, but these errors were encountered: