You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
sfdx sfpowerscripts:dependency:install finds the latest version across different branches #1270
Describe the bug
I'm using sfdx sfpowerscripts:dependency:install to install dependencies from sfdx-project.json. I have a package with a dependency to another package (sf-platform-oppslag, see pictures of where this is relevant), which is set to version 1.1.0.LATEST in sfdx-project.json.
Previously, using sfpowerkit, it would correctly find version 1.1.0.22 (beta 22, which is the latest release for version 1.1.0 in the default branch. See picture).
But after changing to sfpowerscripts, the scripts finds version 1.1.0.40 (beta 40, which is from another branch, see pictures below). But 1.1.0.40 is neither the latest release for 1.1.0 in any branches, nor is it correct to assume that version should be used.
Is this by design? And would it be possible to decide which branch to choose from when running sfdx sfpowerscripts:dependency:install?
To Reproduce
Have package A
Create package version without any branch, e.g. 1.1.0 beta 1
Create package version with a branch, e.g., dev, with version 1.1.0 beta 1
Create another package version for branch dev, but version 1.1.0 beta 2
Have Package B (which is also a separate repo)
Update sfdx-porject.json to have a dependency to Package A, with version 1.1.0.LATEST
Using sfdx sfpowerscripts:dependency:install on Package B will result in finding 1.1.0.2
Expected behavior
Expected results would be that sfdx sfpowerscripts:dependency:install finds 1.1.0.1, as the default branch. Or at least the possibility to specify branch when using sfdx sfpowerscripts:dependency:install.
Platform Details (please complete the following information):
Activity
azlam-abdulsalam commentedon Jun 29, 2023
Fixed in #1322