CumulusCI
CumulusCI copied to clipboard
Enhance default_package_path to serve multi package projects better
Feature Type
I'm interested in functionality that solves a current problem or limitation in how CumulusCI works.
Does your feature request solve a current problem?
Cumulus CI does not support SFDX projects containing multiple packages. By enhancing default_package_path function to make it smarter it could create 2GP without configuration changes.
Describe the solution you'd like
Change default_package_path function to first lookup the name of the package within packageDirectories and if not found an exact match then:
- if there are multiple package directories AND the current package's name does not match the project name print a warning (as perhaps there is a typo or such thing), then fallback to default
- if there are no multiple package directories configured, just keep the existing behavior and fallback to default
- edge case that is not handled Today in case of misconfiguration, if there is no default and no
force-appdirectory exists which is treated as default value, then it should probably hard fail as outcome is definitely not something anyone wants.
Describe alternatives you've considered
N/A
Additional context
No response