Summary
force:source:deploy does not work with symlinks: neither symbolic, nor absolute.
Steps To Reproduce:
$ sfdx -v
sfdx-cli/7.134.0 linux-x64 node-v16.13.2
$ ls -la "./vendors/SObjectFabricator"
lrwxrwxrwx 1 vytautas vytautas 32 saus. 12 11:19 ./vendors/SObjectFabricator -> ../modules/SObjectFabricator/src
$ sfdx force:source:deploy -p "./vendors/SObjectFabricator"
ERROR running force:source:deploy: /home/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░/vendors/SObjectFabricator: Could not infer a metadata type
$ sfdx force:source:deploy -p ./modules/SObjectFabricator/src/
*** Deploying with SOAP API v53.0 ***
Deploy ID: 0░░░░░░░░░░░░░░░D
SOURCE PROGRESS | ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0/13 Components
Expected result
Deployment has to work with real directories and symlinks.
Actual result
Deploy fails, if source path is symlink. But deployment works, if directory is provided not as symlink.
Deploy fails with versions:
- sfdx-cli/7.132.0 linux-x64 node-v16.13.1
- sfdx-cli/7.134.0 linux-x64 node-v16.13.2
System Information
$ sfdx version --verbose --json
{
"cliVersion": "sfdx-cli/7.134.0",
"architecture": "linux-x64",
"nodeVersion": "node-v16.13.2",
"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)",
"alias 1.2.0 (core)",
"auth 1.8.0",
"config 1.3.14 (core)",
"generator 1.2.1 (core)",
"info 1.2.0 (core)",
"salesforcedx 52.0.0 (latest-rc)",
"├─ salesforce-alm 53.7.2",
"├─ data 0.4.11",
"├─ apex 0.2.2",
"├─ limits 1.2.1",
"├─ schema 1.0.7",
"├─ org 1.6.6",
"├─ custom-metadata 1.0.12",
"├─ user 1.3.0",
"├─ templates 51.5.0",
"└─ @salesforce/sfdx-plugin-lwc-test 0.1.7",
"sfdx-cli 7.134.0 (core)",
"source 1.8.0 (core)",
"telemetry 1.4.0 (core)",
"trust 1.1.0 (core)"
],
"osVersion": "Linux 5.13.0-27-generic"
}
Additional information
Deployment of symlinks works with version 7.130.1-fe4ce6c
$ sfdx update --from-local
Found versions:
7.130.1-fe4ce6c
7.132.0-6621068
7.134.0-4f69b20
Enter a version to update to: 7.130.1-fe4ce6c
Summary
force:source:deploydoes not work with symlinks: neither symbolic, nor absolute.Steps To Reproduce:
Expected result
Deployment has to work with real directories and symlinks.
Actual result
Deploy fails, if source path is symlink. But deployment works, if directory is provided not as symlink.
Deploy fails with versions:
System Information
Additional information
Deployment of symlinks works with version 7.130.1-fe4ce6c