From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Tue, 11 Mar 2025 08:00:25 +0100
Subject: Workaround Composer InstalledVersions feature

---
 vendor/spip-league/kernel/src/InstallationDetector.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/vendor/spip-league/kernel/src/InstallationDetector.php b/vendor/spip-league/kernel/src/InstallationDetector.php
index 70084c2..36687a9 100644
--- a/vendor/spip-league/kernel/src/InstallationDetector.php
+++ b/vendor/spip-league/kernel/src/InstallationDetector.php
@@ -4,8 +4,6 @@ declare(strict_types=1);
 
 namespace SpipLeague\Component\Kernel;
 
-use Composer\InstalledVersions;
-
 class InstallationDetector implements InstallationDetectorInterface
 {
     /** @var array<string,string> */
@@ -35,7 +33,7 @@ class InstallationDetector implements InstallationDetectorInterface
 
     private static function getComposerInstallPath(): string
     {
-        return (string) realpath(InstalledVersions::getRootPackage()['install_path']);
+        return (string) realpath('/usr/share/spip/');
     }
 
     public static function fromDir(string $directory): self
