We have an "extension" package that integrates our managed 1GP with a third party managed 1GP. This "extension" package is realized as a managed 2GP.
We hit a problem when trying to create a patch release for the "extension" package - each time we tried to create the patch version using a command line like this:
sfdx force:package:version:create --package "Our Package" --installationkey "SomeKey" \
--definitionfile config/our-scratch-def.json --wait 120 --codecoverage
We would see the following output:
Request in progress. Sleeping 30 seconds. Will wait a total of 7200 more seconds before timing out. Current Status='Initializing'
Request in progress. Sleeping 30 seconds. Will wait a total of 7170 more seconds before timing out. Current Status='Verifying features and settings'
ERROR running force:package:version:create: Communities: Chatter Community domain must be set prior to enabling Communities
The "extension" package doesn't actually include any community-related metadata, so this is really confusing. The required scratch def does enable Community features, but only because of the needs of one or other dependency 1GP.
config/our-scratch-def.json:
{
"orgName": "Our Org Name",
"edition": "Developer",
"hasSampleData": false,
"features": [
"API",
"AuthorApex",
"Communities",
"DebugApex",
"PlatformEncryption",
"ProcessBuilder",
"Sites",
"Workflow"
],
"settings": {
"nameSettings": {
"enableMiddleName": true
},
"communitiesSettings": {
"enableNetworksEnabled": true
},
"chatterSettings": {
"enableChatter": true
},
"emailAdministrationSettings": {
"enableEnhancedEmailEnabled": true
},
"pathAssistantSettings": {
"pathAssistantEnabled": true
}
}
}
sfdx-project.json:
{
"namespace": "namespace",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "48.0",
"packageDirectories": [
{
"path": "force-app",
"default": true,
"package": "Our Package",
"versionNumber": "1.0.1.NEXT",
"versionDescription": "A description",
"ancestorId": "Our [email protected]",
"definitionFile": "config/our-scratch-def.json",
"postInstallScript": "namespace.OurInstaller",
"dependencies": [
{
"package": "Core [email protected]"
},
{
"package": "Third Party [email protected]"
}
]
},
{
"path": "force-unpackaged"
}
],
"packageAliases": {
"Core [email protected]": "04t0..."
"Third Party [email protected]": "04t4...",
"Our Package": "0Ho3...",
"Our [email protected]": "04t3..."
}
}
Has anyone seen this issue? Any idea how to resolve it?