ImJohnMDaniel / sfdx-toolbox-package-utils

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

'toolbox package dependencies install' fails to find packages on v1.0.0 #13

Closed jeffreyazevedo closed 3 weeks ago

jeffreyazevedo commented 4 weeks ago

Just upgraded to v1.0.0 and packages suddenly seem to no longer be installing.

Here's the command I'm running:

sf toolbox:package:dependencies:install -w 30

and here's the output:

Analyzing project to determine packages to install...
Analyzing project to determine packages to install... done
Checking for duplicate package dependencies...
Checking for duplicate package dependencies... done
No packages were found to install

nothing about our sfdx-project.json has changed. The project I'm testing in has a single pinned dependency.

sf version data:

@salesforce/cli/2.64.8 win32-x64 node-v20.17.0

@dx-cli-toolbox/sfdx-toolbox-package-utils 1.0.0
@oclif/plugin-autocomplete 3.2.6 (core)
@oclif/plugin-commands 4.1.3 (core)
@oclif/plugin-help 6.2.16 (core)
@oclif/plugin-not-found 3.2.22 (core)
@oclif/plugin-plugins 5.4.15 (core)
@oclif/plugin-search 1.2.12 (core)
@oclif/plugin-update 4.6.6 (core)
@oclif/plugin-version 2.2.15 (core)
@oclif/plugin-warn-if-update-available 3.1.20 (core)
@oclif/plugin-which 3.2.16 (core)
@salesforce/sfdx-plugin-lwc-test 1.2.1 (1.2.1)
@salesforce/sfdx-scanner 4.7.0
apex 3.5.4 (core)
api 1.3.1 (core)
auth 3.6.70 (core)
data 3.8.1 (core)
deploy-retrieve 3.13.1 (core)
info 3.4.13 (core)
lightning-dev 1.9.3
limits 3.3.36 (core)
marketplace 1.3.0 (core)
org 4.7.2 (core)
packaging 1.26.4 (1.26.4)
schema 3.3.37 (core)
settings 2.3.24 (core)
sfdmu 4.36.7
signups 2.5.23 (2.5.23)
sobject 1.4.42 (core)
source 3.5.21 (core)
telemetry 3.6.17 (core)
templates 56.3.24 (core)
trust 3.7.35 (core)
user 3.5.33 (core)

Uninstalled JIT Plugins:
community 3.2.35
custom-metadata 3.3.35
dev 2.4.2
devops-center 1.2.24
env 3.0.33
functions 1.23.0
ImJohnMDaniel commented 4 weeks ago

G'day @jeffreyazevedo, thanks for reaching out.

Is there a way that you can provide me a way to reproduce this issue? a sample code repo, perhaps?

jeffreyazevedo commented 4 weeks ago

Sure thing, just shared with you a bare bones repo with a single package dependency.

within that project, when I run sf toolbox:package:dependencies:install -w 30 on v0.8.4, I get the following output:

Retrieving packages currently installed in org....... done
Processing sfdx-project.json file... done

Package dependencies found for package directory force-app

dependentPackage == "JeffPackager"
    04t8a000000mdH6 : JeffPackager
Analyzing dependencies to determine what needs to be installed.... done

Beginning installs of packages...

Installing package 04t8a000000mdH6 : JeffPackager

Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Successfully installed package [04t8a000000mdH6]

Installing packages....... done

and when I switch back to v1.0.0 with the same exact repo, I get No packages were found to install

ImJohnMDaniel commented 4 weeks ago

@jeffreyazevedo -- Thanks for this. I am looking into it and will get back to you soon.

ImJohnMDaniel commented 3 weeks ago

@jeffreyazevedo -- I believe I have the fix for this issue ready now. Please update to the latest version which should be v1.0.1. If you have any more issues, please don't hesitate to reach out. Cheers!

jeffreyazevedo commented 3 weeks ago

looks good on my end. thanks so much for the quick fix!