Elgg / starter-project

Repo to start a project using Elgg
3 stars 14 forks source link

Support of older versions? #60

Closed dploeger closed 7 months ago

dploeger commented 8 months ago

Is installing versions other than dev-master supported by this?

I was trying to migrate our older 3.3 Elgg installation to this by reinstalling it from scratch, but this fails:

$ composer create-project elgg/starter-project:3.3.x-dev test
Creating a "elgg/starter-project:3.3.x-dev" project at "./test"
Installing elgg/starter-project (3.3.x-dev a3b7905f619e078c5583233631267f15115f1f54)
  - Downloading elgg/starter-project (3.3.x-dev a3b7905)
  - Installing elgg/starter-project (3.3.x-dev a3b7905): Extracting archive
Created project in /var/www/html/test
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install elgg/elgg 3.0.0-beta.2 (conflict analysis result)
    - Conclusion: don't install elgg/elgg 3.0.0-beta.3 (conflict analysis result)
    - Conclusion: don't install elgg/elgg 3.0.0-rc.1 (conflict analysis result)
    - Conclusion: don't install elgg/elgg 3.0.2 (conflict analysis result)
    - Conclusion: don't install elgg/elgg 3.0.7 (conflict analysis result)
    - Conclusion: don't install elgg/elgg 3.1.2 (conflict analysis result)
    - Conclusion: don't install elgg/elgg 3.1.6 (conflict analysis result)
    - Conclusion: don't install elgg/elgg 3.2.2 (conflict analysis result)
    - Conclusion: don't install elgg/elgg 3.2.4 (conflict analysis result)
    - Conclusion: don't install elgg/elgg 3.3.1 (conflict analysis result)
    - Conclusion: don't install elgg/elgg 3.3.2 (conflict analysis result)
    - Conclusion: don't install elgg/elgg 3.3.10 (conflict analysis result)
    - Conclusion: don't install elgg/elgg 3.3.23 (conflict analysis result)
    - Conclusion: don't install elgg/elgg 3.3.25 (conflict analysis result)
    - elgg/elgg 3.0.0-beta.1 requires roave/security-advisories dev-master -> satisfiable by roave/security-advisories[dev-master].
    - roave/security-advisories dev-master conflicts with elgg/elgg <3.3.24|>=4,<4.0.5.
    - Root composer.json requires elgg/elgg 3.* -> satisfiable by elgg/elgg[3.0.0-beta.1, ..., 3.3.x-dev]. 
dploeger commented 7 months ago

@jdalsem @jeabakker Sorry to ping you, but do you have any idea about this?

jeabakker commented 7 months ago

Installing other versions of Elgg is supported by the starter project, just pick the correct branch (like you did).

However roave/security-advisories is preventing the installation of Elgg <3.3.24 and Elgg >=4 <4.0.5 because of security issues. It should be able to install Elgg 3.3.25 however.....

After you created the project you could try

composer require elgg/elgg:~3.3.25
dploeger commented 7 months ago

@jeabakker Thanks, but requiring that leaves

- roave/security-advisories dev-master conflicts with ckeditor/ckeditor <4.24.

And requiring ckeditor/ckeditor:4.24.0 results in:

- elgg/elgg[3.3.25, ..., 3.3.x-dev] require ckeditor/ckeditor ~4.12.0 -> found ckeditor/ckeditor[4.12.0, 4.12.1, 4.12.x-dev] but it conflicts with your root composer.json require (4.24.0).

Meh. 😄

jeabakker commented 7 months ago

then I don't think you can use composer to migrate your site. You can always use the ZIP downloads from https://elgg.org/about/download (which at the time was build with the starter project).

dploeger commented 7 months ago

Thanks. I implemented the download option to the container as well.