Sfdx-git-delta: Fail to install sfdx sgd plugin in Linux Pipeline

Created on 27 Oct 2020  路  8Comments  路  Source: scolladon/sfdx-git-delta

Hello,

sfdx plugins command return "no plugin installed" at the end but can't see all lines during install.

Any idea on this one ? :)

+ node --version
Node version : 
v14.13.1
+ echo 'Npm version : '
+ npm --version
Npm version : 
6.14.8
+ echo y | sfdx plugins:install -f sfdx-git-delta
This plugin is not digitally signed and its authenticity cannot be verified. Continue installation y/n?: Finished digital signature check.
Installing plugin sfdx-git-delta... yarn add v1.22.5
Installing plugin sfdx-git-delta... info No lockfile found.Installing plugin sfdx-git-delta... 
[1/4] Resolving packages...Installing plugin sfdx-git-delta... 
[2/4] Fetching packages...Installing plugin sfdx-git-delta... 
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
+ sfdx plugins
no plugins installed

bug

Most helpful comment

Nice catch guys !
And thanks for the analysis, very interesting.

All 8 comments

@alexmodis what's the output of sfdx -v on this machine?

sfdx-cli/7.74.1-32db2396ed linux-x64 node-v12.18.3

just feeling that's the same error that the one on windows

Yes there's still an issue with the node version used by the Salesforce CLI on that system (node-v12.18.3, while v14.6.0 or above is required for SGD).

Here the script we use :
(and as you can see in previous comment node version returned is 14.13.1 :/)
Moreover it was working fine with npm install sgd

      mkdir sfdx
      wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
      tar xJ -C sfdx -f ./sfdx-linux-amd64.tar.xz --strip-components 1
      ./sfdx/install || { echo "error during sfdx installation"; exit 1; }
      echo "Node version : " && node --version || { echo "node not found"; exit 1; }
      echo "Npm version : " && npm --version || { echo "npm not found"; exit 1; }
      echo y | sfdx plugins:install -f sfdx-git-delta
      sfdx plugins

ok updated :

      mkdir sfdx
      wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
      tar xJ -C sfdx -f ./sfdx-linux-amd64.tar.xz --strip-components 1
      ./sfdx/install || { echo "error during sfdx installation"; exit 1; }

with npm i -g sfdx-cli

and working fine.

Strange behavior of the installer

@alexmodis Yes, similarly to the issue you had on windows, it seems that you should install Salesforce CLI with npm to make sure it doesn't come with its own version of node.

Here is another exemple install on linux that works: https://hub.docker.com/r/mehdisfdc/sfdx-cli-gitlab/dockerfile

I'm proposing an update to the readme to address this issue: #70

Nice catch guys !
And thanks for the analysis, very interesting.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

welhorr picture welhorr  路  4Comments

arafesthain picture arafesthain  路  7Comments

arafesthain picture arafesthain  路  7Comments

Dhanielk picture Dhanielk  路  6Comments

DougMidgley picture DougMidgley  路  7Comments