sfpowerscripts icon indicating copy to clipboard operation
sfpowerscripts copied to clipboard

Prepare command is not respecting aliasified packages

Open dieffrei opened this issue 2 years ago • 1 comments

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):

  • OS: linux/amd64
  • Version 13.6.16
  • Salesforce CLI(sfdx cli) Version: 7.145.0
  • CI Platform:

Additional context Add any other context about the problem here.

dieffrei avatar May 30 '22 08:05 dieffrei

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

azlam-abdulsalam avatar May 30 '22 12:05 azlam-abdulsalam