Skip to content

Set VCS repository as non-canonical to fix composer resolution#43

Merged
rkunjappan merged 1 commit into1.0.xfrom
SITE-5259-unit-tests
Feb 26, 2026
Merged

Set VCS repository as non-canonical to fix composer resolution#43
rkunjappan merged 1 commit into1.0.xfrom
SITE-5259-unit-tests

Conversation

@rkunjappan
Copy link
Collaborator

@rkunjappan rkunjappan commented Feb 25, 2026

Problem

The create-multidev.sh script registers the GitHub VCS repository for pantheon_content_publisher as canonical by default. This causes Composer to attempt resolving all packages from the GitHub VCS repo first, leading to dependency resolution failures for packages that don't exist there.

Unlike other Pantheon modules that maintain packages on both Packagist and packages.drupal.org/8, this module is only published on Drupal.org — which is the recommended practice going forward. As a result, the VCS repository must be explicitly marked as non-canonical to avoid interfering with resolution of other dependencies.

Fix

Configures the VCS repository with "canonical": false so that Composer only uses it for pantheon_content_publisher and falls back to packages.drupal.org/Packagist for all other dependencies.

@rkunjappan rkunjappan marked this pull request as ready for review February 25, 2026 20:30
@rkunjappan rkunjappan requested review from AnaisPantheor and removed request for AnaisPantheor February 25, 2026 20:45
Copy link

@tundeafolabi tundeafolabi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rkunjappan rkunjappan merged commit f3148aa into 1.0.x Feb 26, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants