File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -594,6 +594,7 @@ public function invokeLoadAndInstall()
594594 }
595595
596596 $ moduleLoader = LocalModuleLoader::createFromConfig ();
597+ $ moduleLoader ->resetCache ();
597598 $ module = $ moduleLoader ->loadByArchiveNameAndVersion ($ archiveName , $ version );
598599
599600 if (!$ module ) {
Original file line number Diff line number Diff line change @@ -220,9 +220,9 @@ private function internalPullAndInstall(Module $module): void
220220 $ this ->pull ($ module );
221221 }
222222
223- $ reloaded = $ this ->reload ($ module );
223+ $ reloadedModule = $ this ->reload ($ module );
224224
225- if (!$ reloaded ->isLoaded ()) {
225+ if (!$ reloadedModule || ! $ reloadedModule ->isLoaded ()) {
226226 $ message =
227227 "Can not pull and install module {$ module ->getArchiveName ()} {$ module ->getVersion ()}. "
228228 . "Module is not loaded. " ;
@@ -231,12 +231,12 @@ private function internalPullAndInstall(Module $module): void
231231 throw new RuntimeException ($ message );
232232 }
233233
234- if ($ reloaded ->isInstalled ()) {
234+ if ($ reloadedModule ->isInstalled ()) {
235235 return ;
236236 }
237237
238- $ this ->uninstall ($ module );
239- $ this ->internalInstall ($ module );
238+ $ this ->uninstall ($ reloadedModule );
239+ $ this ->internalInstall ($ reloadedModule );
240240 }
241241
242242 private function internalInstallDependencies (Module $ parentModule , Combination $ combination ): void
You can’t perform that action at this time.
0 commit comments