dxatscale / sfpowerscripts

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

Ignore empty aliasfied package during the validation #1419

Open ruslan-kurchenko opened 1 year ago

ruslan-kurchenko commented 1 year ago

During fast-feedback validation we are getting the issue: Aliasfied package 'env-meta-vars' does not have an alias with 'default' or 'default' directory

It is an MR validation job. We alias our CI org as "default" and there is a folder inside "env-meta-vars" with "default" folder

error log: Screenshot 2023-10-05 at 13 20 55

folders structure: Screenshot 2023-10-05 at 13 23 37 Screenshot 2023-10-05 at 13 24 06

Issue Details: dev, prod, staging and uat was changed but not default. In fast-feedback mode, it deploys only a delta. But there are no changes to the "default" folder and it causes issues because nothing is there.

Workaround: Introduce dummy change to "default" folder too.

Proposed Solution: The validation process should ignore aliasfied package if the deployment package is not found or empty. But we need to think about upcoming enhancement in the context of https://github.com/dxatscale/sfpowerscripts/pull/1418 as it can impact this item too.

Slack Message