Open PawelWozniak opened 2 months ago
Hi @PawelWozniak !
Thanks for raising this issue and thanks for contributing in making this project better!
It seems to be related to dependency of library we are using.
And also it seems to be related to the migration the plugin V2 which is way more up to date. We have a work item to follow this but we still have a lot of users using old sfdx
so we don't want to break their installations.
Next fix / feature will come with a dependency upgrade, we'll see at that moment if it is better
Thank you for the update. In my opinion sf cli is already so long on the market that most of the teams and developers should be already using sf, because of that I would consider removing sfdx compatibility soon. Salesforce itself is already removing old sfdx commands https://github.com/forcedotcom/cli/issues/2974
I'll have a look at the download trends at the end of september and see if it is the right time. I'll also think of how to do this upgrade (which channel, how to communicate, etc)
@scolladon if you upgrade your plugin to sf cli base arch and keep the same name of commands & parameters, existing calls to sfdx-git-delta will work exactly the same undepending they are called with sfdx or sf :)
Tested with many of the 100 commands of sfdx hardis v5 alpha
https://github.com/hardisgroupcom/sfdx-hardis/pull/770
I struggled a while for my upgrade so if you need help, you know where to find me :)
It starts with deleting all your files -> commit -> create a new plugin with the sf command -> revert the commit where you deleted everything -> solve conflicts (priority to new sf core items -> reinstall missing dependencies (as u have a brand new package.json) -> solve TS issues 😅
Hi @nvuillam !
Thanks for those information
Can I understand that I can build a plugin using plugin V2 architecture and it will be executable by the old sfdx/cli
application ?
Old sfdx/cli
is upward compatible with plugin V2 architecture ?
@scolladon exactly :) My cicd pipelines work exactly the same with sfdx hardis v4 & v5 alpha :)
That's a very good news 🤩 Thanks mate, I'll work on that soon
Issue verification check:
What is the problem?
Just installed plugin and got many warnings during this process, here is an output:
It seems that it depends on old version or even libraries that are not recommended to use:
What is the parameter and the value you used with it?
sf plugins install sfdx-git-delta
What is the expected result?
Plugin install without warning.
What is the actual result?
The user is getting many warnings.
Steps to reproduce
Unsinstall whole SF CLI so it remove also plugins. Install SF CLI. Install sfdx-git-delta with command
sf plugins install sfdx-git-delta
Execution context
Operating System: Windows 11
yarn version: none
node version: v20.17.0
git version: 2.46.0.windows.1
sfdx version: @salesforce/cli/2.56.7 win32-x64 node-v20.17.0
sgd plugin version: sfdx-git-delta 5.42.1
More information (optional)