dxatscale / sfpowerscripts

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

Prepare does not support -c flag for scratch org creation #1451

Open petter-eikeland opened 9 months ago

petter-eikeland commented 9 months ago

Describe the bug To fix this SF issue when creating a scratch org, the -c flag must be utilized upon scratch org creation in Prepare: https://github.com/forcedotcom/cli/issues/2642.

To Reproduce Steps to reproduce the behavior:

  1. Have Managed package specified in sfdx-project.json with "ancestorVersion": "HIGHEST"
  2. Run sfp orchestrator:prepare

Expected behavior Prepare should successfully execute

Actual behavior Prepare fails with A scratch org creation was rejected due to The scratch org request namespace '[NO NAMESPACE]' must match Ancestor's (04tTe000000123) parent Package2 (0336N000000abc) namespace 'bicx'.: Requested Package2 Ancestor IDs

Screenshots image

Platform Details (please complete the following information):