Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
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

Closed

Description

@johnforeland

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).

image

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.

image
image

Is this by design? And would it be possible to decide which branch to choose from when running sfdx sfpowerscripts:dependency:install?

To Reproduce

  1. 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
  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
  3. 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):

  • OS: macOS and Linux
  • Version [e.g. CLI Version eg: 1.6.6]: 20.26.3
  • Salesforce CLI(sfdx cli) Version: 7.190.2
  • CI Platform: GitHub Actions

Activity

  1. added
    analysis
    on Mar 15, 2023
  2. added
    enhancement
    and removed
    analysis
    on Mar 16, 2023
  3. azlam-abdulsalam commented on Jun 29, 2023

    @azlam-abdulsalam
    Contributor

    Fixed in #1322

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions