-
Notifications
You must be signed in to change notification settings - Fork 79
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
cli versions stable and newer fail to recognize customPermission metadata for retrieve or deployment #3220
Comments
I'm not able to reproduce this with deploy or retrieve: Was there a recent change to the |
This works for me on 2.73.8 of the CLI (currently looking at which version 'breaks' it). Simply changing the cli version using To clarify, I don't seem to be getting the usual "No source-backed components present in the package" message as if it had found nothing, but it simply seems to run a deployment of zero components which succeeds:
I'll try with debug output and a clean no-plugin instance to see if I can track the issue down a little bit more concretely. |
v2.74.5 seems to identify and deploy the customPermission |
I don't see anything in the logging that would indicate WHY the file is being left out of the deploy, but here's the salient bits where things start to diverge. 2.74.5
2.74.6 (not working)
Also possibly of interest, the
|
Are you using the UPDATE: Yeah, if I use that preset and then run the same commands I reproduce it. Thanks for narrowing it down to that release window. That was huge in finding this! As a temporary workaround you can install a previous CLI release or install a version of the |
This issue has been linked to a new work item: W-17874345 |
I am! I can update the source behavior for now to undo that change while this is pending - we're not using the feature to any extensive effect, so turning it off won't really affect much in the meantime. Thanks for helping track down the issue so quickly. |
Expected result
Use of deploy and retrieve of the CustomPermission metadata type fails to find any results on stable, stable-rc and nightly currently.
Actual result
Deploy fails to find local metadata, even when explicitly addressed:
Retrieve fails similarly
Additional information
This also fails with wildcards and when deploying or retrieving using source tracking.
System Information
Diagnostics
✅ pass - salesforcedx plugin isn’t installed
✅ pass - you don't have any linked plugins
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.yarnpkg.com
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org/
✅ pass - using latest or latest-rc CLI version
✅ pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion
✅ pass - [@salesforce/plugin-deploy-retrieve] default target DevHub max apiVersion matches default target org max apiVersion
❌ warn - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches default target org max apiVersion
✅ pass - can access: https://test.salesforce.com
✅ pass - can access: https://appexchange.salesforce.com/services/data
✅ pass - can access: https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-win32-x64-buildmanifest
❌ fail - [@salesforce/plugin-auth] CLI supports v2 crypto
✅ pass - [@salesforce/plugin-auth] CLI using stable v1 crypto
The text was updated successfully, but these errors were encountered: