Add workaround for InstalledVersion to ensure we always run last version
parent
ee6dc33fd1
commit
d2cd6dec2d
|
@ -19,6 +19,9 @@ if (function_exists('date_default_timezone_set') && function_exists('date_defaul
|
|||
}
|
||||
|
||||
require __DIR__.'/../src/bootstrap.php';
|
||||
// ensure we always use the latest InstalledVersions.php even if an older composer ran the install, but we need
|
||||
// to have it included from vendor dir and not from src/ otherwise some gated check in the code will not work
|
||||
copy(__DIR__.'/../src/Composer/InstalledVersions.php', __DIR__.'/../vendor/composer/InstalledVersions.php');
|
||||
require __DIR__.'/../vendor/composer/InstalledVersions.php';
|
||||
|
||||
Platform::putEnv('COMPOSER_TESTS_ARE_RUNNING', '1');
|
||||
|
|
Loading…
Reference in New Issue