scolladon / sfdx-git-delta

Generate the sfdx content in source format from two git commits
Other
428 stars 115 forks source link

Problem installing sfdx-git-delta #681

Closed josme12698 closed 7 months ago

josme12698 commented 1 year ago

Issue verification check:

What is the problem?


What is the parameter and the value you used with it?

What is the expected result?

What is the actual result?

Steps to reproduce


Execution context


Operating System:

yarn version:

node version: node:20.0.0

git version:

sfdx version: 7.209.6-8ba3197

sgd plugin version:

scolladon commented 1 year ago

Hi @josme12698 !

Thanks for raising this issue and thanks for contributing in making this project better!

What is the issue ? What is the plugin version, the os type, the git version and the yarn version ?

josme12698 commented 1 year ago

Hi @scolladon I'm so sorry, I thought I had uploaded an image with the problem. There is more information.

We are having problem in our gitlab pipeline. We have been using this plugin without any problems. But since yesterday this step in our pipeline gitlab is failing.

generate-delta-package: stage: generate-delta-package script:

scolladon commented 1 year ago

Thanks for those information.

It seems the issue comes from the node version (The engine "node" is incompatible with this module. Expected version ">=14.14". Got "12.18.3"). It can come from multiple places.

My suggestion would be to use node lts and to install the cli via npm (npm install -g sfdx-cli).

Do you have those information ($ uname -v ; yarn -v ; node -v ; git --version ; sfdx --version ; sfdx plugins): Operating System: … yarn version: … node version: ... git version: … sfdx version: ... sgd plugin version: …

scolladon commented 10 months ago

Closing this issue, feel free to reopen it if you have more information to share

pietroz123 commented 7 months ago

I'm having the same issue installing the plugin. Can someone help? Thanks a lot!

image

scolladon commented 7 months ago

Hi @pietroz123

Sorry to ear that, could you share the exact issue you have please ?

Sometimes (I don't know why), but uninstalling sfdx and reinstalling it unblock the plugin installation.

pietroz123 commented 7 months ago

Hi @scolladon , thanks for the quick response. The issue is the same @josme12698 had. Please see below:

sfdx plugins:install sfdx-git-delta
 ›   Warning: @salesforce/cli update available from 2.23.20 to 2.28.6.
? This plugin isn't signed by Salesforce. Only install the plugin if you trust its creator. Do you want to continue the installation?, Yes
Because you approved this plugin, you can avoid future installation confirmations by adding the plugin to the unsignedPluginAllowList.json file. For details, see https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_allowlist.htm.
Finished digital signature check.
Installing plugin sfdx-git-delta@latest... failed
 ›   Warning: sfdx-git-delta > @salesforce/command@5.3.9: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
    Error: /usr/local/lib/node_modules/@salesforce/cli/node_modules/yarn/bin/yarn.js add sfdx-git-delta@latest --non-interactive --mutex=file:/Users/pietrozuntini/.local/share/sf/yarn.lock --preferred-cache-folder=/Users/pietrozuntini/Library/Caches/sf/yarn --check-files exited with 
    code 1
scolladon commented 7 months ago

Ok, could you update sfdx cli and try again please ? I want to make sure you are up to date with everything

pietroz123 commented 7 months ago

Hi @scolladon !

I've updated sfdx and it still didn't work. But then I used sudo and the plugin was installed, but I still got warnings, I guess sudo just bypassed them. Here is the output:

image

Also, when executing the command to get the diff, although it worked and generated both the package and destructiveChanges folders with the correct files, I also got and warning:

sfdx sgd:source:delta --from origin/master --output "." 
(node:36056) Warning: Deprecated config name: apiVersion. Please use org-api-version instead.
(Use `node --trace-warnings ...` to show where the warning was created)
{
  "error": null,
  "output": ".",
  "success": true,
  "warnings": []
}

In conclusion, it worked but I thought I'd send you the warnings just in case. Maybe with a clean installation when I have the time the warnings will disappear.

Thanks!

scolladon commented 7 months ago

Thanks for the information @pietroz123 Too bad it requires you to install the plugin with sudo, maybe the sfdx cli has been installed with sudo and that's why you also need sudo to install plugins.

Thanks for the warnings as well, we have another issue to track it