-
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
force: package: beta: version: create doesn't use unpackagedMetadata for testing. #1743
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. |
Wow! You get 3 gold stars for this issue. 1 for using the packaging beta commands. 1 for using the release candidate version of the CLI. And 1 for providing all requested information including repro steps. Awesome! That said, I tried a few variations of your steps (mostly modifying file paths) but can't reproduce the problem on a mac. I'm assuming this is a problem only on Windows OS. I'll try to reproduce on a Windows box but until then can you:
|
We can't reproduce this on a windows box either. Are there other steps involved? I created this fork of the dreamhouse-lwc repo and ran the 2 commands you mentioned above and they both worked. |
Output from running the commands this morning; I adjusted the I ran the I note in your fork you have the |
This is happening in our project as well. We have a package/project that references unpackaged metadata. If we create a new package version using |
Sorry for the delay. I reproduced it now. We'll get it fixed asap. Thank you for reporting! |
This issue has been linked to a new work item: W-11927980 |
Hi @David-Polehonski - I cloned your fork, and was able to create a package. I then ran the
I then tried it with the current packaging commands and saw the same error.
a I'm curious if this is passing with the current commands for you? |
Results from
Result from
It would appear the unpackaged metadata isn't being processed in either case now. |
@WillieRuemmele I've taken another look at this; the integrity exception comes from the StandardValueSet Legacy
Beta
ResultWith the issue out of the way it would appear that the legacy command is including and installing the unpackaged metadata as expected allowing for package creation with code coverage, whereas the beta command is failing to do so. |
Running these tests again on 7.177.1 which claims to have resolved this issue.
And the beta equivalent:
Thank you very much for resolving this issue. Keep up the excellent work, and let me know if I can do anything else. |
Summary
Short summary of what is going on or to provide context.
Steps To Reproduce:
Repository to reproduce: dreamhouse-lwc
(Steps 1 through 3 are included in the main branch of the above repository)
unpackaged
folder to the file system, and the sfdx-project.json. Add the unpackagedMetadata attribute to theDreamhouseLWC
package definition.unpackaged\standardValueSets\ContractStatus.standardValueSet-meta.xml
with the following content;sfdx force:package:beta:create -n DreamhouseLWC -t Unlocked -r .\force-app\
sfdx force:package:beta:version:create -p DreamhouseLWC -k DreamhouseLWC -c -w 15
Expected result
A new package version should be created.
Actual result
unpackagedMetadata appears to be missing during test execution:
System Information
The text was updated successfully, but these errors were encountered: