- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Warning: Deprecated config name: apiVersion. Please use org-api-version instead #619
Comments
Hi @AnantSahTeli ! Thanks for raising this issue and thanks for contributing in making this project better! I dig a bit on this one. |
Thanks @scolladon I will check if SF team. |
@AnantSahTeli Did you get this resolved? If so, please say how. I have followed the above advice. I have deinstalled the entire CLI, deleted every file SF says to delete, reinstalled, reinstalled plug-in, checked stray environment variables, etc. I definitely do not have apiVersion set. @scolladon how did you reproduce this? |
I have not done anything special on my side @rondinardo. |
Hi @scolladon, I could not resolve it yet. I contacted salesforce, and they where able to show me that this warning is coming only when using sgd command. all other sfdx or sf commands are running perfectly fine. So the outcome was its sgd issue. I am still figuring out how to solve this. I tried uninstalling a fresh instance, but didn't help. |
That is very interesting @AnantSahTeli ! Do they provide specific information about why we have this behavior with sgd ? |
I was in contact with Shivanshu Tiwari, and we tested both sf and sfdx with and without api-version parameter. Since they are re-developing everything around sfdx and sf, he has no clear reason of this error. |
I received the same warning while using |
Thank you guys for those information. |
@scolladon maybe u have to change @salesforce/command by this one https://github.com/salesforcecli/sf-plugins-core |
Thanks for this pointer @AllanOricil, I'll have a look soon. |
Hi I'm getting the same error when I install the sfdx-git-delta plugin. |
Hi @aalmogg, do you have issue when installing the plugin ? Does it prevent you from installing it ? |
I’m sorry, you right. |
I don't know yet exactly why it happens. |
I'm having the same issue when using the plugin locally in my machine, nevertheless, the creation of the packages is working correctly. Here is the command I'm using,
As for the usage in a GitHub runner, I'm being prompted with the following message:
These are the versions of the dependencies: OS: Linux (GitHub Runner) and MacOS (Locally) yarn version: 1.22.19 node version: v20.4.0 git version: 2.39.0 sfdx version: NA --> sf version: 0.1.9 sgd plugin version: 5.24.2 |
Hi @nereagit Thanks for those detailed information. We have not tested robustly the execution of the plugin with the I plan to work on the Stay tuned! |
@scolladon Same issue, the package is not updating, hence unable to use the plugin |
Hi @A30016340 Sorry for the late reply, I do not know why I missed it, my bad. We have improve our testing and now we make sure the plugin is working with:
|
Thanks @AnantSahTeli for confirming this on your end too. We are aware of this warning, the issue we have is: to fix it we need to migrate to sf v2 plugin architecture, and if we do so, everyone using sfdx old cli will not be able to install the plugin. |
Hi @scolladon |
Hi @khichia9 ! TL;DR;We know how to fix it Long StoryThe impact is not that big in term of code / test changes, we already have a roadmap to apply this change. As you can see there is still a lot of weekly downloads for We want to wait for this weekly download to be under 10%-5% overall weekly downloads before making this change to make sure the least users possible will be impacted. |
Issue verification check:
What is the problem?
Error shown for api version even if its being new flag.
Error appearing
(node:191) 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": []
}
What is the parameter and the value you used with it?
Provide the command and the parameters you used
sfdx sgd:source:delta --from HEAD^ --to HEAD --repo . --output . --api-version $branch_api_version
What is the expected result?
the warning should not be there, as i am using the newest flag
What is the actual result?
warning as deprecated parameter
Steps to reproduce
run the below command
sfdx sgd:source:delta --from HEAD^ --to HEAD --repo . --output . --api-version $branch_api_version --source force-app
Execution context
$ uname -v ; yarn -v ; node -v ; git --version ; sfdx --version ; sfdx plugins
Operating System: … linux
yarn version: …
node version: …v17.6.0
git version: …
sfdx version: …7.202.7
sgd plugin version: …5.19.0
More information (optional)
From http://bitbucket.org/coloplastsalesforce/coloplast-salesforce-repository
(node:191) 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": []
}
The text was updated successfully, but these errors were encountered: