Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package version list command fails when listing multiple packages #1912

Closed
thomasminney opened this issue Feb 3, 2023 · 3 comments
Closed
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@thomasminney
Copy link

thomasminney commented Feb 3, 2023

Summary

Command sfdx force package version list supported inputs -p 0Ho...abc,0Ho....def to list versions for multiple packages at once.
Since v7.186, sfdx package version list now errors with the same inputs provided. The parameter is still described as "Comma-delimited list of packages (aliases or 0Ho IDs) to list."

Error:

The Package Id: 0Ho...abc,0Ho....def isn't defined in the sfdx-project.json. Add it to the packageDirectories section and add the alias to packageAliases with its 0Ho ID.

Running the command twice, first with input -p 0Ho...abc and then with input -p 0Ho...def works as expected. Error also happens when using packageAliases.

Steps To Reproduce:

Authenticate with DevHub org.

Identify ids of multiple packages in DevHub.

Try command sfdx package version list -v <devhubalias> -p <packageId1>,<packageId2>

Expected result

Package versions for both and are listed

Actual result

Error:

The Package Id: <packageId1>,<packageId2> isn't defined in the sfdx-project.json. Add it to the packageDirectories section and add the alias to packageAliases with its 0Ho ID.

System Information

  • Which shell/terminal are you using? cmd.exe
{
  "cliVersion": "sfdx-cli/7.186.2",
  "architecture": "win32-x64",
  "nodeVersion": "node-v18.13.0",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 1.4.2 (core)",
    "@oclif/plugin-commands 2.2.4 (core)",
    "@oclif/plugin-help 5.2.1 (core)",
    "@oclif/plugin-not-found 2.3.17 (core)",
    "@oclif/plugin-plugins 2.2.4 (core)",
    "@oclif/plugin-search 0.0.11 (core)",
    "@oclif/plugin-update 3.1.0 (core)",
    "@oclif/plugin-version 1.2.1 (core)",
    "@oclif/plugin-warn-if-update-available 2.0.23 (core)",
    "@oclif/plugin-which 2.2.9 (core)",
    "alias 2.1.19 (core)",
    "apex 1.4.3 (core)",
    "auth 2.3.12 (core)",
    "community 2.1.5 (core)",
    "config 1.4.23 (core)",
    "custom-metadata 2.0.16 (core)",
    "data 2.1.22 (core)",
    "generator 2.0.17 (core)",
    "info 2.3.5 (core)",
    "limits 2.2.3 (core)",
    "org 2.2.24 (core)",
    "packaging 1.12.4 (core)",
    "schema 2.2.3 (core)",
    "signups 1.2.12 (core)",
    "source 2.3.16 (core)",
    "telemetry 2.0.7 (core)",
    "templates 55.2.3 (core)",
    "trust 2.3.0 (core)",
    "user 2.2.1 (core)",
    "@salesforce/sfdx-plugin-lwc-test 1.0.1 (core)",
    "salesforce-alm 54.8.5 (core)",
    "sfdx-git-delta 5.11.1 (user)"
  ],
  "osVersion": "Windows_NT 10.0.22621",
  "shell": "cmd.exe",
  "rootPath": "C:\\Users\\thomasminney\\AppData\\Local\\sfdx\\client\\7.186.2-b2fe485"
}
@thomasminney thomasminney added the investigating We're actively investigating this issue label Feb 3, 2023
@github-actions
Copy link

github-actions bot commented Feb 3, 2023

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@shetzel shetzel added bug Issue or pull request that identifies or fixes a bug and removed investigating We're actively investigating this issue labels Feb 3, 2023
@git2gus
Copy link

git2gus bot commented Feb 3, 2023

This issue has been linked to a new work item: W-12490382

@shetzel
Copy link
Contributor

shetzel commented Feb 16, 2023

@thomasminney - the fix was included in last week's release candidate so it will be promoted to production today.

@shetzel shetzel closed this as completed Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug
Projects
None yet
Development

No branches or pull requests

2 participants