Issue #3364646 by dww, catch, longwave: Add a branch alias for 11.x

merge-requests/4177/merge
catch 2023-07-24 09:15:06 +01:00
parent c8deebc1d5
commit b28e3b7651
15 changed files with 30 additions and 29 deletions

View File

@ -68,6 +68,9 @@
}
},
"extra": {
"branch-alias": {
"dev-11.x": "10.2.x-dev"
},
"_readme": [
"By default Drupal loads the autoloader from ./vendor/autoload.php.",
"To change the autoloader you can edit ./autoload.php.",

2
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "e98db90afbd0b05e99c667319f2f2eba",
"content-hash": "d5d9a4f206c270584532c37f9ec140fc",
"packages": [
{
"name": "asm89/stack-cors",

View File

@ -7,7 +7,7 @@
"webflo/drupal-core-strict": "*"
},
"require": {
"drupal/core": "11.x-dev",
"drupal/core": "10.2.x-dev",
"asm89/stack-cors": "~v2.1.1",
"composer/semver": "~3.3.2",
"doctrine/annotations": "~1.14.3",

View File

@ -7,7 +7,7 @@
"webflo/drupal-core-require-dev": "*"
},
"require": {
"drupal/core": "11.x-dev",
"drupal/core": "10.2.x-dev",
"behat/mink": "v1.10.0",
"behat/mink-browserkit-driver": "v2.1.0",
"behat/mink-selenium2-driver": "v1.6.0",

View File

@ -16,13 +16,13 @@
],
"require": {
"composer/installers": "^2.0",
"drupal/core-composer-scaffold": "^11",
"drupal/core-project-message": "^11",
"drupal/core-recommended": "^11",
"drupal/core-vendor-hardening": "^11"
"drupal/core-composer-scaffold": "^10.2",
"drupal/core-project-message": "^10.2",
"drupal/core-recommended": "^10.2",
"drupal/core-vendor-hardening": "^10.2"
},
"require-dev": {
"drupal/core-dev": "^11"
"drupal/core-dev": "^10.2"
},
"conflict": {
"drupal/drupal": "*"

View File

@ -16,12 +16,12 @@
],
"require": {
"composer/installers": "^2.0",
"drupal/core-composer-scaffold": "^11",
"drupal/core-project-message": "^11",
"drupal/core-recommended": "^11"
"drupal/core-composer-scaffold": "^10.2",
"drupal/core-project-message": "^10.2",
"drupal/core-recommended": "^10.2"
},
"require-dev": {
"drupal/core-dev": "^11"
"drupal/core-dev": "^10.2"
},
"conflict": {
"drupal/drupal": "*"

View File

@ -75,7 +75,7 @@ class Drupal {
/**
* The current system version.
*/
const VERSION = '11.0-dev';
const VERSION = '10.2.0-dev';
/**
* Core API compatibility.

View File

@ -9,9 +9,9 @@
"require": {
"php": ">=8.1.0",
"doctrine/annotations": "^1.14",
"drupal/core-file-cache": "11.x-dev",
"drupal/core-plugin": "11.x-dev",
"drupal/core-utility": "11.x-dev"
"drupal/core-file-cache": "10.2.x-dev",
"drupal/core-plugin": "10.2.x-dev",
"drupal/core-utility": "10.2.x-dev"
},
"autoload": {
"psr-4": {

View File

@ -8,7 +8,7 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=8.1.0",
"drupal/core-utility": "11.x-dev"
"drupal/core-utility": "10.2.x-dev"
},
"autoload": {
"psr-4": {

View File

@ -8,8 +8,8 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=8.1.0",
"drupal/core-file-cache": "11.x-dev",
"drupal/core-serialization": "11.x-dev"
"drupal/core-file-cache": "10.2.x-dev",
"drupal/core-serialization": "10.2.x-dev"
},
"autoload": {
"psr-4": {

View File

@ -8,7 +8,7 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=8.1.0",
"drupal/core-serialization": "11.x-dev"
"drupal/core-serialization": "10.2.x-dev"
},
"autoload": {
"psr-4": {

View File

@ -9,7 +9,7 @@
},
"require": {
"php": ">=8.1.0",
"drupal/core-render": "11.x-dev"
"drupal/core-render": "10.2.x-dev"
},
"autoload": {
"psr-4": {

View File

@ -8,7 +8,7 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=8.1.0",
"drupal/core-file-security": "11.x-dev"
"drupal/core-file-security": "10.2.x-dev"
},
"autoload": {
"psr-4": {

View File

@ -8,7 +8,7 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=8.1.0",
"drupal/core-utility": "11.x-dev"
"drupal/core-utility": "10.2.x-dev"
},
"autoload": {
"psr-4": {

View File

@ -66,12 +66,10 @@ class ComponentsIsolatedBuildTest extends ComposerBuildTestBase {
* The working directory.
*/
protected function addExpectedRepositories(string $working_dir): void {
$repo_paths = [
'Render' => 'drupal/core-render',
'Utility' => 'drupal/core-utility',
];
foreach ($repo_paths as $path => $package_name) {
$path_repo = $this->getWorkingPath() . static::$componentsPath . '/' . $path;
foreach ($this->provideComponentPaths() as $path) {
$path = $path[0];
$package_name = 'drupal/core' . strtolower(preg_replace('/[A-Z]/', '-$0', substr($path, 1)));
$path_repo = $this->getWorkingPath() . static::$componentsPath . $path;
$repo_name = strtolower($path);
// Add path repositories with the current version number to the current
// package under test.