Problem
DP_CORE_VERSION=main is not supported in DrupalPod for core projects.
- Composer converts
mainto~main(invalid constraint) - Git treats
mainas a tag (tags/main) instead of a branch
Proposed solution
Add support for main:
- Use
main-dev@devfor Composer - Treat
mainas a dev branch (origin/main)
Issue fork drupalpod-3583118
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
vinaygawadeRequesting review from @darrenoh
This adds support for DP_CORE_VERSION=main in both Composer and Git setup, allowing DrupalPod to work with the Drupal core main branch end-to-end.
Comment #4
mradcliffeThis makes sense to me. I'll let @Darrenoh confirm since he was also working on the drush issue with DrupalForge the past couple of weeks.
Comment #5
vinaygawadeI was able to test this locally without issues, but while testing with DrupalForge (using the current base image), I'm hitting a Composer failure:
drupal/core 12.x-dev requires php >=8.5.0 -> your php version (8.3.21) does not satisfy that requirement.
Since DP_CORE_VERSION=main resolves to Drupal core main (currently 12.x-dev), it pulls in a PHP requirement that is higher than what the current image provides.
This results in Composer failing during setup.
It may be helpful to add a guard/check before the Composer setup step to detect incompatible PHP versions and provide a clearer message instead of failing during dependency resolution.
Comment #6
darren ohWe need to add images for PHP 8.4 and 8.5 for this to work.