-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composer InstalledVersions
not found
#620
Comments
... I can't actually reproduce this problem in isolation, I'll check later today when I can. |
Thank you, @dantleech - let me know if I should take a look! |
ok, I could reproduce it I just wasn't showing the warning details 😅 see here: https://github.com/dantleech/slow-test-dector-gh-620 Let me know if you have any ideas at this point as I'm happy to investigate it further (and am getting paid to do so), I don't want to dump work on you 😄 |
ok, it is due to adding the diff --git a/box.json b/box.json
index 7a107ea..a3d2ee6 100644
--- a/box.json
+++ b/box.json
@@ -5,9 +5,6 @@
"KevinGH\\Box\\Compactor\\Php"
],
"compression": "GZ",
- "directories": [
- "src/"
- ],
"files": [
"manifest.xml"
], |
…lled.php` in PHAR The autoloadmap includes a mapping `Composer\InstalledVersions` but as of explicitly including `src` this file is no longer included. This commit explicitly adds both `vendor/composer/InstalledVersions.php` and `vendor/composer/installed.php` to ensure that the previous behavior is preserved and WARNINGS are not issued when other packages use `InstalledVersions::getVersion(// ...)`.
ok, and this is a "fix": #621 Incidentally calling So I'm not sure I have the courage to call it a "fix" but it will at least preserve the original behavior. |
…lled.php` in PHAR The autoloadmap includes a mapping `Composer\InstalledVersions` but as of explicitly including `src` this file is no longer included. This commit explicitly adds both `vendor/composer/InstalledVersions.php` and `vendor/composer/installed.php` to ensure that the previous behavior is preserved and WARNINGS are not issued when other packages use `InstalledVersions::getVersion(// ...)`.
…lled.php` in PHAR The autoloadmap includes a mapping `Composer\InstalledVersions` but as of explicitly including `src` this file is no longer included. This commit explicitly adds both `vendor/composer/InstalledVersions.php` and `vendor/composer/installed.php` to ensure that the previous behavior is preserved and WARNINGS are not issued when other packages use `InstalledVersions::getVersion(// ...)`.
gh-620: Explicitly include `InstalledVersions.php` and `installed.php` in PHAR
Released with |
wow, thanks 🎉 |
Thank you for reporting and fixing, @dantleech! |
Hi @localheinz 👋
Steps required to reproduce the problem
InstalledVersions
in a PHPUnit test case:Expected Result
Returns the composer package version for the given package.
Actual Result
"fail" with the warning:
It seems that the slow-test-detector's PHAR
vendorcomposer/autoload_classmap.php
has the following entry:and starting from version 2.15.1 it no longer exists.
The text was updated successfully, but these errors were encountered: