flxbl-io / sfp

A build system for modular development in Salesforce
https://docs.flxbl.io/sfp/
MIT License
27 stars 13 forks source link

Cannot specify dependency on RELEASED version #18

Closed packocz closed 4 months ago

packocz commented 6 months ago

Describe the bug When sfdx-project.json package definition specifies a dependency on another package's RELEASED version, the orchestrator fails with following error:

Validating Org Authentication Mechanism.. Error: Unable to execute command .. MALFORMED_QUERY: PatchVersion=1 and BuildNumber=RELEASED and ValidationSkipped

Example sfdx-project.json snippet:

"path": "src/case-management",
"default": false,
"package": "case-management",
"versionName": "ver 0.1",
"versionNumber": "0.1.0.NEXT",
"definitionFile": "config/package-def.json",
"dependencies": [
    {
        "package": "core",
        "versionNumber": "0.5.1.RELEASED"
    }
]

SF Documentation about dependency config allowing use of RELEASED https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/sfdx_dev_dev2gp_config_keywords.htm

To Reproduce

  1. In a project with 2 packages with 1 depending on the other, set the dependency on major.minor.patch.RELEASED version
  2. Promote the parent package at version from step 1
  3. Run orchestrator script (tested with prepare pool)

Expected behavior No errors

Platform Details (please complete the following information):

Rocko1204 commented 6 months ago

Hi @packocz Fix/feature is in progress #20

azlam-abdulsalam commented 4 months ago

Done