Skip to content
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

Always update all packages if composer.lock is not present #649

Closed
fritzmg opened this issue Apr 29, 2021 · 6 comments
Closed

Always update all packages if composer.lock is not present #649

fritzmg opened this issue Apr 29, 2021 · 6 comments
Labels
Milestone

Comments

@fritzmg
Copy link
Contributor

fritzmg commented Apr 29, 2021

If you try to do an "expert installation", the following error will occur if the cloud resolver is used:

Cannot update only a partial set of packages without a lock file present. Run `composer update` to generate a lock file.

Reproduction:

  1. Set up a new domain and download the Contao Manager.
  2. Open and configure the Contao Manager accordingly.
  3. Click Setup.
  4. Enable Skip Installation.
  5. Click Finish.
  6. Go to Packages.
  7. Change Contao Open Source CMS to 4.4.* for example.
  8. Click Apply Changes.
2021-04-29.13-51-30.mp4
@mlwebworker
Copy link

Wenn Du danach noch einmal den Manager startest, lief es bei mir fehlerfrei durch. Nicht unbedingt schön, aber wenn ich noch 4.4 brauchen würde, würde ich ohnehin direkt über den Eintrag in der composer.json gehen und eigentlich soll man das neu ja nicht mehr installieren.

@fritzmg
Copy link
Contributor Author

fritzmg commented Apr 29, 2021

You still need to do it if you transfer an existing Contao 4.4 installation using the official and unofficial guides. Using the Expert mode was the recommended way of doing so, however there is this pitfall.

@mlwebworker
Copy link

Bei einem Umzug hast Du ja eine composer.json und nutzt diese für die Installation, dann dürfte das Problem ja gar nicht auftreten. Ich habe heute wegen der Tickets im Forum mehrere 4.4 testweise mit einer vorhandenen composer.json und dem Contao Manager problemlos installiert. Der Fehler wie von Dir beschrieben, ist bei mir nur über den Expertenmodus aufgetreten, aber nicht wenn eine composer.json vorhanden war.

@aschempp
Copy link
Member

Und es würde funktionieren wenn du das neue "Full Update" wählst, richtig?

@aschempp aschempp added the bug label Apr 29, 2021
@aschempp aschempp added this to the 1.4 milestone Apr 29, 2021
@mlwebworker
Copy link

Ja mit der neuen Option unten "Update all Packages" läuft die Installation von Contao 4.4 auch im Expertenmodus fehlerfrei durch.

@fritzmg
Copy link
Contributor Author

fritzmg commented Apr 29, 2021

@aschempp You mean "Update all packages"? Yes, that works:

2021-04-29.15-50-00.mp4

So I guess the "Apply Changes" button should be changed, so that it also runs "Update all packages", if no composer.lock is present.

@aschempp aschempp changed the title Expert installation of Contao 4.4 not possible Always update all packages if composer.lock is not present Aug 10, 2021
@aschempp aschempp modified the milestones: 1.4, 1.4.5 Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants