silverstripe / silverstripe-assets

Silverstripe Assets component
BSD 3-Clause "New" or "Revised" License
9 stars 65 forks source link

Updating league/flysystem minimum #516

Closed dawb closed 1 year ago

dawb commented 1 year ago

Updating to minimum version of ^1.1.0 to align with the minimum requirements with fullscreeninteractive/silverstripe-azure-blob-storage.

Latest version of 1 is 1.1.9

michalkleiner commented 1 year ago

@dawb the reason for an update shouldn't be aligning with another 3rd party module. Also requiring ^1.1.0 might be too new for some other dependencies and cause issues elsewhere.

What if the dependency constraint got relaxed to ^1.0 which would work for both this module and the azure blob storage module?

It's also what silverstripe/silverstripe-s3 uses.

kinglozzer commented 1 year ago

^1.0.70 should already allow you to install 1.1.19, IIRC it’s the “tilde” operator (~1.0.70) that would restrict you to 1.0.x releases only

dawb commented 1 year ago

Thanks @kinglozzer , currently it doesn't allow for the install as it comes back that assets 1.11.0 only satisfies with 1.0.70 (see screenshot below).

If @michalkleiner 's solution opens up this requirement, could we use that as a solution instead? I understand that we shouldn't be updating based on other module requirements but currently it's also limiting requirements.

Screen Shot 2022-09-27 at 11 26 01 AM

kinglozzer commented 1 year ago

Are you running the latest version of composer? ^1.0.70 should definitely allow 1.1.9 to be installed: https://getcomposer.org/doc/articles/versions.md#caret-version-range-

dawb commented 1 year ago

@kinglozzer we are using composer 2.4.2

kinglozzer commented 1 year ago

What happens if you add "league/flysystem": "^1.1.0" to your root composer.json?

dawb commented 1 year ago

Thanks @kinglozzer , that resolves that issue. The league/filesystem is actually required by version 3.0 or higher. Is there a plan in the near future to upgrade this module to work with version 3 of league/flysystem?

kinglozzer commented 1 year ago

Yep, that’s being tracked here for CMS5: https://github.com/silverstripe/silverstripe-assets/issues/497