flxbl-io / sfp

A build system for modular development in Salesforce
https://docs.flxbl.io/sfp/
MIT License
31 stars 18 forks source link

Undocumented behavior: Aliasified packages fail to deploy to Production when there is no "prod" folder #119

Open thraco opened 2 months ago

thraco commented 2 months ago

Describe the bug When an aliasified package is deployed to Prod, it fails if it does not contain a prod-specific folder. The Prod deployment does not use the default package.

To Reproduce Steps to reproduce the behavior:

Per the logs, the default folder is selected, but the deployment fails. The error message received is Error: Aliasfied package 'redhatcrm-loyalty-mgmt-env-specific' does not have an alias with 'prod' or 'default' directory, which is inaccurate, as this package does have a default directory, as shown in the screenshot below.

On reviewing the documentation, I can find no mention of this behavior, but it's clearly specified in the code (https://github.com/flxbl-io/sfp/blob/5082c8802c0e53f3075fedda610fec746440bd0d/src/core/package/packageInstallers/InstallPackage.ts#L145-L159).

Expected behavior

Screenshots Screenshot from 2024-09-18 09-42-16

Platform Details (please complete the following information):