Cli: sfdx plugins:install fails

Created on 2 Sep 2020  路  13Comments  路  Source: forcedotcom/cli

Hi community,

I am using Azure pipeline as a ci/cd tool and the deployment is running with ubuntu-latest vm. The installation of the sfdx-cli is successful through npm
npm install sfdx-cli

however it seems the sfdx force:plugins is failing to run and return an error.

image

By installing a previous version of sfdx cli it seems to work though.

Did something change with custom sfdx plugins that we need to adjust on our side ?

Most helpful comment

It will be fixed this week. Sorry for the inconvenience. It is a missing dependency in the trust package.

All 13 comments

We are noticing this as well, not limited to azure pipelines
and is able to reproduce in a docker image with 7.72.0

https://github.com/Accenture/sfpowerkit/issues/378

@rody @manisfdx

Hello, I've added some comments on the issue Accenture/sfpowerkit#378.

Summary

This bugs can be found in version 7.72.0 and 7.71.0 of the sfdx-cli and affects many plugin installation. Version 7.70.1 is working.

Steps to reproduce

Attached the docker files to reproduce the issue. You check each version by building the image with the command

docker build -f Dockerfile.7.72.0 .

Archive.zip

@rody thanks for the update. Do you have something like stable tag version so maybe in our pipeline we can just do npm install sfdx-cli@stable

@davidbrowaeys I'm not part of forcedotcom, so I can't really help with the @stable tag for the sfdx-cli.

I think (but I'm not sure) that each published version of the sfdx-cli can be considered as stable and the beta versions are kept internal. Again I might be completely wrong about this....

We started hitting this issue and I tracked it back to a recent release of the npm package @salesforce/sfdx-trust version 3.4.2.

I would assume that the installers don't hit this issue since it's a problem with a transitive dependency, so you could try installing that way to avoid the issue.

I tried today with the new 7.73.1 release. The issue is still present.

FROM node:14-stretch
RUN npm install -g [email protected]
RUN echo 'y' | sfdx plugins:install sfpowerkit
CMD "bash"

We're also hitting this issue in our CircleCI builds

@amphro any updates on this?

It will be fixed this week. Sorry for the inconvenience. It is a missing dependency in the trust package.

Tks for let us know @amphro

@amphro thank you seems to be fixed. But this issue here seems to be blocking many deployments so can't really upgrade yet

Was this page helpful?
0 / 5 - 0 ratings