Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

sfp dependency:install causes package downgrades #1412

Open
pogilvieCB opened this issue Sep 23, 2023 · 0 comments
Open

sfp dependency:install causes package downgrades #1412

pogilvieCB opened this issue Sep 23, 2023 · 0 comments
Labels
analysis To be decided on how to solution/fix

Comments

@pogilvieCB
Copy link

We recently experienced an unexpected package downgrade when we installed a package dependent on another package with version 1.0.0.LATEST in an environment with version 1.0.1.x installed. We expected 1.0.1.x to "satisfy" the 1.0.0 requirement declared by the package being installed instead we observed that sfp dependency:install downgraded the packages in the target environment. In this case all the packages involved are unlocked packages. The versions of the installed packages can be found from the target environment and DX@Scale knows the available version both in the devhub and the package repo. Is is possible to only upgrade / downgrade if a package requests a version with a different major number?

I'm not sure if the framework officially supports or endorses semantic versioning.

dependent on version: 1.0.0.LATEST
Installed version 1.0.1.x
Expected: Installed version is left along
Observed: target environment is downgraded to 1.0.0.y

@github-actions github-actions bot added the analysis To be decided on how to solution/fix label Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
analysis To be decided on how to solution/fix
Projects
None yet
Development

No branches or pull requests

1 participant