Skip to content

force:source:push with sequential packages deploy resets source tracking when there is a failure in Nth package #1599

@pznmc

Description

@pznmc

Is your feature request related to a problem? Please describe.
Failure during deployment of multiple packages using sfdx force:source:push -f with pushPackageDirectoriesSequentially set to true resets source tracking to state before deployment was started. When I have 50 packages in sfdx-project.json to deploy on a clean scratch org, and there is some issue in 50th package, fixing the problem and using sfdx force:source:push -f again causes deployment of all 50 packages, ignoring fact that the previous 49 packages have been deployed successfully.

What are you trying to do
I would like to not be forced to deploy every package all over again, when there is some error in Nth package, and previous ones were deployed successfully.

Describe the solution you'd like
Would be great to save state of source tracking after each successfully package deploy, instead of saving it at the end of deployment of all packages. Alternative would be some flag, that could save state after each package deployment, however I find it redundant.

Describe alternatives you've considered
Didn't found any.

Additional context
With wider adoption of packaging, this behaviour can be annoying to more and more people, especially working on projects with many packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIssue or pull request for a new feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions