Support multiple SFDX projects for a custom GIT repo
When comparing / deploying using a custom git repository, containing multiple SFDX projects, present the user with the ability to select which SFDX project to compare / deploy, either by package.xml or sfdx-project.json. Currently Gearset fails and reports multiple sfdx-project.json were found.
[
{
"UserReadableError": "This repository has 2 sfdx-project.json files: Gearset cannot determine which one to use",
"ErrorType": "ErrorFromSource"
}
]
-
Richard commented
Separate project json file definitions are a must for automated build jobs outside of gearset. This is to allow simple build of the package without dependencies being introduced on other metadata that appears in the same repo but in a different folder location. When this is a mono repo where Gearset is used as the CI and deployment tooling for unmanaged packaged metadata then Gearset fails with the presence of more than one project json file.