forked from dxatscale/sfpowerscripts
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
Description
Problem
The current release deployment process in ReleaseImpl.ts does not consider package dependencies when determining installation order. This can lead to deployment failures when packages are ordered incorrectly.
Current Behavior
- Release definitions are sorted based on 'first unique package index' logic
- Within each release, packages are deployed in the order they appear in sfdx-project.json
- No dependency resolution is applied during deployment ordering
Root Cause
While sophisticated dependency resolution exists in TransitiveDependencyResolver with topological sorting, it's not integrated into the release deployment process (ReleaseImpl.ts).
Expected Behavior
Packages should be deployed in dependency order to ensure dependencies are installed before dependent packages.
Files Affected
- src/impl/release/ReleaseImpl.ts
- src/impl/deploy/DeployImpl.ts
- Integration with existing TransitiveDependencyResolver
Solution Approach
Integrate the existing TransitiveDependencyResolver's topological sorting into the release deployment process to ensure dependency-aware package ordering.