You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.
As you can see, there there are dependencies listed for TheSeer/Autoload.
Installing Composer with your Ebuilds might create an environment without dev-php/theseer-Autoload in certain situations. For example when using ROOT variable during emerge. This way it won't install the dependency into the custom root and running any Composer command within this custom root environment will throw errors like this:
PHP Fatal error: Uncaught RuntimeException: File not found: '/usr/share/php/TheSeer/Autoload/autoload.php' in /usr/share/php/Fedora/Autoloader/functions.php:58
Stack trace:
#0 /usr/share/php/Fedora/Autoloader/Dependencies.php(78): Fedora\Autoloader\requireFile()
#1 /usr/share/php/Fedora/Autoloader/Dependencies.php(100): Fedora\Autoloader\Dependencies::process()
#2 /usr/share/composer/vendor/autoload.php(292): Fedora\Autoloader\Dependencies::required()
#3 /usr/share/composer/src/bootstrap.php(17): include('...')
#4 /usr/share/composer/src/bootstrap.php(20): includeIfExists()
#5 /usr/share/composer/bin/composer(14): require('...')
#6 {main}
thrown in /usr/share/php/Fedora/Autoloader/functions.php on line 58
Fatal error: Uncaught RuntimeException: File not found: '/usr/share/php/TheSeer/Autoload/autoload.php' in /usr/share/php/Fedora/Autoloader/functions.php:58
Stack trace:
#0 /usr/share/php/Fedora/Autoloader/Dependencies.php(78): Fedora\Autoloader\requireFile()
#1 /usr/share/php/Fedora/Autoloader/Dependencies.php(100): Fedora\Autoloader\Dependencies::process()
#2 /usr/share/composer/vendor/autoload.php(292): Fedora\Autoloader\Dependencies::required()
#3 /usr/share/composer/src/bootstrap.php(17): include('...')
#4 /usr/share/composer/src/bootstrap.php(20): includeIfExists()
#5 /usr/share/composer/bin/composer(14): require('...')
#6 {main}
thrown in /usr/share/php/Fedora/Autoloader/functions.php on line 58
I'll provide a PR.
The text was updated successfully, but these errors were encountered:
Oh wait, my mistake. I should have checked the Ebuild file. It's actually from your Ebuild that those dependencies are in the autoload. Question now is, if this dependency would be needed in the first place. I'll run some tests.
No, no. You are right... I included too much Autoload-Configuration...
There is no Runtime- or Autoload-Dependency. I craeted the include-list with supported by a script, which picked up basically "anything" - where I manually removed unneeded dependencies - obviously I missed at least this one.
I'll overwork the generated include.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The autoload.php file at
/usr/share/composer/vendor/autoload.php
for Composer will contain this code:As you can see, there there are dependencies listed for
TheSeer/Autoload
.Installing Composer with your Ebuilds might create an environment without
dev-php/theseer-Autoload
in certain situations. For example when usingROOT
variable duringemerge
. This way it won't install the dependency into the custom root and running any Composer command within this custom root environment will throw errors like this:I'll provide a PR.
The text was updated successfully, but these errors were encountered: