I like your plugin but am a bit confused about how to use package:dependencies:install command in my project.
I have my four unlocked packages (core, application-log, bypass-api and permission-set-groups), all of them installation key protected. Some of them are dependent on managed packages, no need to pass the installation key.
Installing package 04t3z000001gxxxxx2 : application-log 0.0.1.LATEST
ERROR running force:package:install: Invalid InstallationKey for SubscriberPackageVersion
ERROR running texei:package:dependencies:install: sfdx force:package:install --targetusername [email protected] --package 04t3z000001gxxxxx2 --wait 10 --publishwait 10 --noprompt` failed with code 1
It seems like the installation key wasn't picked for my unlocked package at all.
Am I using the notation for --installationkeys parameter correctly ? My understanding is that for first unlocked package it picks "1:key1234", for second it picks "2:key4321" and so on..
{
"packageDirectories": [
{
"package": "core",
"default": true,
"path": "./sfdx-packages/core",
"versionName": "Org's core - Pre-release One",
"versionNumber": "0.0.1.NEXT",
"dependencies": [
{
"package": "managed-package-1"
},
{
"package": "managed-package-2"
},
{
"package": "managed-package-3"
},
{
"package": "managed-package-6"
},
{
"package": "managed-package-4"
},
{
"package": "managed-package-5"
},
{
"package": "application-log",
"versionNumber": "0.0.1.LATEST"
},
{
"package": "bypass-api",
"versionNumber": "0.0.1.LATEST"
},
{
"package": "managed-package-7"
}
]
},
{
"package": "application-log",
"default": false,
"path": "./sfdx-packages/application-log",
"versionName": "Application Log - Pre-release One",
"versionNumber": "0.0.1.NEXT"
},
{
"package": "permission-set-groups",
"default": false,
"path": "./sfdx-packages/permission-set-groups",
"versionName": "Permission Set Groups - Pre-release One",
"versionNumber": "0.0.1.NEXT",
"dependencies": [
{
"package": "managed-package-1"
},
{
"package": "managed-package-2"
},
{
"package": "managed-package-3"
},
{
"package": "managed-package-6"
},
{
"package": "managed-package-4"
},
{
"package": "managed-package-5"
},
{
"package": "application-log",
"versionNumber": "0.0.1.LATEST"
},
{
"package": "bypass-api",
"versionNumber": "0.0.1.LATEST"
},
{
"package": "managed-package-7"
},
{
"package": "core",
"versionNumber": "0.0.1.LATEST"
}
]
},
{
"package": "bypass-api",
"default": false,
"path": "./sfdx-packages/bypass-api",
"versionName": "Bypass Api - Pre-release One",
"versionNumber": "0.0.1.NEXT"
}
],
"namespace": ""
}
Thank you.