ImJohnMDaniel / sfdx-toolbox-package-utils

Salesforce CLI plugin to help with second generation packaging related tasks
Other
26 stars 5 forks source link

Cannot 'manage' package version when branch name used in package version creation #4

Closed simon-nowak closed 2 years ago

simon-nowak commented 2 years ago

Hello,

We recently updated our CI to take into account the branch name to build package version. In short sfdx force:package:version:create [...] --branch $CI_COMMIT_REF_SLUG

This is working as expected. The command sfdx force:package:version:list is showing us this output: image

However in other packages, when I run the command sfdx toolbox:package:dependencies:manage I have this result for fflib-apex-mocks image

if I try sfdx toolbox:package:dependencies:manage -b main the output is similar image

So the plugin is only showing me the package version without branch. Before without indicating branch name, we were able to select package version here.

Are we doing something wrong?

Thank you

ImJohnMDaniel commented 2 years ago

@simon-nowak, thanks for raising this issue.

Can you tell me what version of the CLI you are running and what version of the@dx-cli-toolbox/sfdx-toolbox-package-utils plugin you are running please?

simon-nowak commented 2 years ago

sfdx-cli/7.137.1 darwin-x64 node-v14.15.5 @dx-cli-toolbox/sfdx-toolbox-package-utils 0.8.0

ImJohnMDaniel commented 2 years ago

@simon-nowak, what happens when you run the manage command without specifying the branch flag??

    sfdx toolbox:package:version:manage

Do you then see the versions that were specified on the branch of "main"??

ImJohnMDaniel commented 2 years ago

G'day @simon-nowak. Thanks for sending over the extra info. At this point, I have been able to reproduce the issue. I am now working to figure out the root cause. I will be in touch when I have something.