[#3583118] feat: update version handling for main branch in composer and git setup scripts
Problem
DrupalPod does not currently support using:
DP_CORE_VERSION=main
for Drupal core projects.
- Composer converts
main→~main(invalid constraint) - Git treats
mainas a tag (tags/main) instead of a branch
Solution
This MR adds minimal support for main:
- Use
main-dev@devfor Composer installs - Treat
mainas a development branch (origin/main) in Git
Changes
-
composer_setup.sh
- Handle
main→main-dev@dev
- Handle
-
git_setup.sh
- Treat
mainsame as*.x(dev branches)
- Treat
Result
- Composer installs Drupal using latest dev (
main) - Git checks out correct branch (
origin/main) - DrupalPod works with Drupal core
main(e.g., 12.x-dev)
Notes
- No impact on existing version handling (
*.x, stable tags) - Change is minimal and backward-compatible