force:source:deploy -x package.xml: ListView are always all deployed
- Dominant language
- No language data
- Stars
- 571
- Forks
- 80
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 3
Description
### Summary
I do NOT want to deploy ListViews, and whereas the type is empty in my package.xml, they are all deployed with their parent object...
### Steps To Reproduce:
Create a package.xml file containing an CustomObject, and empty ListView type (or no ListView type, the result is the same)
```xml
Account
CustomObject
ListView
```
call `sfdx force:source:deploy -x package.xml`
### Expected result
ListViews not deployed, existing ones in target org remain the same
### Actual result
ListViews are deployed whereas they should not , so target org ListViews are overidden
Log sample:
```shell
Account.ComptesFelix ListView force-app\main\default\objects\Account\listViews\ComptesFelix.listView-meta.xml
Account.Fournisseurs ListView force-app\main\default\objects\Account\listViews\Fournisseurs.listView-meta.xml
Account.MesComptes ListView force-app\main\default\objects\Account\listViews\MesComptes.listView-meta.xml
```
### System Information
```json
{
"cliVersion": "sfdx-cli/7.132.0",
"architecture": "win32-x64",
"nodeVersion": "node-v14.18.0",
"pluginVersions": [
"@oclif/plugin-autocomplete 0.3.0 (core)",
"@oclif/plugin-commands 1.3.0 (core)",
"@oclif/plugin-help 3.3.1 (core)",
"@oclif/plugin-not-found 1.2.6 (core)",
"@oclif/plugin-plugins 1.10.11 (core)",
"@oclif/plugin-update 1.5.0 (core)",
"@oclif/plugin-warn-if-update-available 1.7.3 (core)",
"@oclif/plugin-which 1.0.4 (core)",
"@salesforce/analytics 0.30.0",
"@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)",
"@salesforce/sfdx-scanner 2.5.1",
"alias 1.2.0 (core)",
"apex 0.7.0 (core)",
"auth 1.8.0 (core)",
"config 1.3.2 (core)",
"custom-metadata 1.0.12 (core)",
"data 0.6.6 (core)",
"generator 1.2.1 (core)",
"info 1.1.4 (core)",
"lightning-flow-scanner 0.0.5",
"limits 1.3.0 (core)",
"org 1.11.0 (core)",
"salesforce-alm 53.7.0 (core)",
"schema 1.1.0 (core)",
"sfdmu 4.11.9",
"sfdx-cli 7.132.0 (core)",
"sfdx-essentials 2.12.0 (link) D:\\git\\sfdx-essentials",
"sfdx-git-delta 4.12.0",
"sfdx-hardis 2.64.0 (link) D:\\git\\sfdx-hardis",
"sfpowerkit 4.0.1",
"shane-sfdx-plugins 4.43.0",
"├─ @mshanemc/sfdx-sosl 1.1.0",
"└─ @mshanemc/plugin-streaming 1.1.7",
"source 1.6.2 (core)",
"telemetry 1.4.0 (core)",
"templates 52.7.0 (core)",
"texei-sfdx-plugin 1.14.0",
"trust 1.1.0 (core)",
"user 1.7.0 (core)"
],
"osVersion": "Windows_NT 10.0.19044"
}
```
### Additional information
_Feel free to attach a screenshot_.
Contributor guide
Assessment
This issue has not been assessed yet.