dxatscale / sfpowerscripts

A build system for modular development in Salesforce
https://dxatscale.io
MIT License
211 stars 94 forks source link

Prepare command is not respecting aliasified packages #997

Open dieffrei opened 2 years ago

dieffrei commented 2 years ago

Describe the bug After migrating our pipelines to newer sfdx cli and sfpowerscrips version:

From: SFDX CLI 7.136.2 SFPOWERSCRIPTS 10.2.15

To: SFDX CLI 7.145.0 SFPOWERSCRIPTS 13.6.16

Prepare command began to deploy all folders of "aliasified" package. https://ibb.co/xftMnmC

Expected behavior When deploying a package in which aliasify is enabled, it hast to deploy only the folder that matches with alias or default folder.

Screenshots If applicable, add screenshots to help explain your problem.

Platform Details (please complete the following information):

Additional context Add any other context about the problem here.

azlam-abdulsalam commented 2 years ago

Thanks @dieffrei . As discussed this is only an issue when source tracking is enabled (basically how source:push works as it merges all subfolders). We can fix this in prepare, but the same behaviour will be present when a dev is using the push command. As a workaround, ignore the rest of env folders from pushing in using . forceignore and utilize the multi ignore capability where the subfolders are not ignored for build stage