File: 0014-Revert-Add-workaround-for-InstalledVersion-to-ensure.patch

package info (click to toggle)
composer 2.8.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,768 kB
  • sloc: php: 77,502; makefile: 59; xml: 39
file content (26 lines) | stat: -rw-r--r-- 1,152 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Wed, 22 Jan 2025 13:54:39 +0100
Subject: Revert "Add workaround for InstalledVersion to ensure we always run
 last version"

This reverts commit d2cd6dec2d924aa725ccf080eb48086d7eac90f7.

Origin: vendor, https://github.com/composer/composer/commit/d2cd6dec2d924aa725ccf080eb48086d7eac90f7
---
 tests/bootstrap.php | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 2213d74..fe1d3b0 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -19,9 +19,6 @@ 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');