Skip to content

Commit 46dc7a4

Browse files
committed
Use SAs from drupal/drupal for drupal/core
1 parent dda2bf4 commit 46dc7a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build/build-composer-json.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ public static function isValid($version) {
123123
$composer['conflict'][$package] = implode(',', $constraints);
124124
}
125125

126+
// drupal/core is a subtree split for drupal/drupal and has no own SAs.
127+
// @see https://github.com/drush-ops/drush/issues/3448
128+
if (isset($composer['conflict']['drupal/drupal']) && !isset($composer['conflict']['drupal/core'])) {
129+
$composer['conflict']['drupal/core'] = $composer['conflict']['drupal/drupal'];
130+
}
131+
126132
ksort($composer['conflict']);
127133
file_put_contents(__DIR__ . '/' . $target[$core] . '/composer.json', json_encode($composer, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) . "\n");
128134
}

0 commit comments

Comments
 (0)