-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Skip generate autoload if <nothing to install> #10792
Comments
Makes sense, let's try this for 2.4, we may need to keep track of the last autoload dump state (optimizations etc..) to make sure we redump it if the new mode isn't matching the old one. |
After the attempt in #10899 and further consideration I'm gonna have to close this as not worth the risk/trouble. |
@Seldaek Just for clarification: it is also not an option to have this as optional (experimental) flag? The only other option to fix this for me, would be to parse the stdout for "Nothing to install, update or remove" which can break easily if the string was updated. |
It just seems like a giant foot-gun so I'd rather not have it in even as an optional thing. Parsing output of install sounds relatively safe as if it does not match |
Okay, good to know that. Then I'm going forward with this implementation. Thanks |
Running
composer install
always runscomposer dump-autoload
afterwards, showingGenerating optimized autoload files
, even if the install output isNothing to install, update or remove
.Always re-generating autoload files is an unnecessary step for us, that consumes too much time when handling docker containers.
But if we skip this during installation using
--no-autoloader
and there was a package installed, we need to manually runcomposer dump-autoload
to update the autoload files.I could not find any workaround yet. So I guess it should be possible to skip this behavior conditionally, if something/nothing was installed.
The text was updated successfully, but these errors were encountered: