-
Notifications
You must be signed in to change notification settings - Fork 78
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
sf package installed list fails with TypeError: this.config.scopedEnvVarKeys is not a function #2330
Comments
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. |
Thanks for the issue @gadamson-upco, we saw this same error in some of our integration tests and we are looking into it! I will keep you posted |
Getting this on two separate commands: We are even specifying exact versions of SF and plugins (to avoid this exact thing) and this error started failing in our CI/CD in between runs with no changes. It's a fresh Docker container with no prior state so this broke even with trying to maintain constant package versions.... CLI 1.85.8 |
Ok we have a temporary fix while we look into this more. If you uninstall your plugins and reinstall them, this should now work as expected. List plugins Uninstall plugins |
Looks to be working now. I also had the community plugin installed locally, until removed that plugin too and then reinstalled both the issue remained. |
That temporary fix worked for me too. |
Yea, they likely would have deduped versions of We just release a fix as Appreciate all of your help! |
Summary
As of this morning ( ~11:00AM PDT), trying to run
sf package installed list --json
fails with an internal error,TypeError: this.config.scopedEnvVarKeys is not a function
. This occurs with multiple combinations of of os/arch.Steps To Reproduce
npm install --global @salesforce/cli@latest
or via tarball link from the sf cli documentation sitesf plugins install packaging
sf package installed list --json
Expected result
Standard JSON output detailed installed packages in default project org
Actual result
System Information
This occurs both on an Apple silicon Mac, and in a Linux CI environment
Mac details:
Linux details (from CI so not a full verbose output):
Additional information
Interestingly, when I first tried to reproduce the issue locally on the mac, it ran without issue. This was with the same cli and packaging versions as the CI environment. I tried removing and reinstalling the plugins with the respective
sf plugins
commands without specifying a particular version. After reinstalling, I still had the same versions, but my local environment was now broken, failing with the same error. So it seems likely to be some downstream dependency change?Downgrading packaging to 1.21.1 had no impact
Upgrading CLI to 2.2.7 had no impact
The text was updated successfully, but these errors were encountered: