Problem

DP_CORE_VERSION=main is not supported in DrupalPod for core projects.

  • Composer converts main to ~main (invalid constraint)
  • Git treats main as a tag (tags/main) instead of a branch

Proposed solution

Add support for main:

  • Use main-dev@dev for Composer
  • Treat main as a dev branch (origin/main)

Issue fork drupalpod-3583118

Command icon 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

vinaygawade created an issue. See original summary.

vinaygawade’s picture

Assigned: vinaygawade » Unassigned
Status: Active » Needs review

Requesting 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.

mradcliffe’s picture

This 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.

vinaygawade’s picture

I 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.

darren oh’s picture

Status: Needs review » Needs work

We need to add images for PHP 8.4 and 8.5 for this to work.