-
Notifications
You must be signed in to change notification settings - Fork 78
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
sfdx Deploying w Unreleased API Version by Default #1656
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
I'm seeing the same error this morning with |
This issue has been linked to a new work item: W-11549415 |
Thanks for reporting the issue. We have determined the cause. The workaround will require the presence of property sourceApiVersion in your project json. |
Thanks for jumping on this, @peternhale |
Update on my issue. I have a monorepo with the managed package, some AWS code, and documentation. In the root of the entire project directory, I have a lightweight sfdx-project.json file as this is required for the SFDX tools within VS Code to load. I have another sfdx-project.json in the package directory for package-specific properties such as versioning, namespace, etc. Adding
|
@mshanemc is the solution to this to always specify the |
yeah, I'd always recommend specifying |
Summary
This AM I started having issues with
sfdx force:source:deploy -p ...
pushing source w/ API version 56.0 (upcoming/unreleased Winter '23) by default. I eventually just forced the API version used bysfdx
to be 55.0 but another dev just reported seeing the same thing also starting this AM. We both initially were onsfx-cli/7.161.0
and then upgraded tosfdx-cli/7.162.0
with no effect.Steps To Reproduce:
Repository to reproduce: dreamhouse-lwc
sourceApiVersion
value fromsfdx-project.json
that would otherwise forcesfdx
to deploy using v55.0sfdx force:source:deploy -p force-app
against a new scratch org spun up with Summer '22 (v55.0)Error package.xml Invalid version specified:56.0
Expected result
sfdx
should use latest released version of API (v55.0) for deployment, which should then succeed.Actual result
sfdx
attempts to deploy using unreleased API version v56.0, which results in the deployment failing.System Information
zsh
The text was updated successfully, but these errors were encountered: