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

Installer composer.json files shouldn't have very strict constraints #137

Open
jonom opened this issue Apr 7, 2019 · 5 comments
Open

Installer composer.json files shouldn't have very strict constraints #137

jonom opened this issue Apr 7, 2019 · 5 comments

Comments

@jonom
Copy link

jonom commented Apr 7, 2019

I feel like I must have missed something obvious here, so please delete if I did. But if I do composer create-project silverstripe/installer ./mySite.localhost ^4 I get a composer file with a line like:

    "require": {
       ...
        "silverstripe/recipe-cms": "4.3.3@stable",
       ...
    },

Which seems to lock my installation to SilverStripe 4.3.3 and prevent me from getting patches when I do composer update.

Discovered this because I had a project with "silverstripe/recipe-cms": "4.3.2@stable" today. I had to change it to "silverstripe/recipe-cms": "^4.3" to get composer update to bring me to v4.3.3.

If I'm not mistaken this seems like a major issue as developers will not get security patches for the core SS modules unless they edit their composer.json file.

@ScopeyNZ ScopeyNZ transferred this issue from silverstripe/silverstripe-installer Apr 8, 2019
@ScopeyNZ
Copy link

ScopeyNZ commented Apr 8, 2019

Hey thanks for the report @jonom . I've moved the issue to our release tool that takes care of tagging these versions. Right now it works like this on purpose but I think you make a valid point that installers should probably specify looser constraints.

@ScopeyNZ ScopeyNZ changed the title Composer create-project locks versions, prevents patches Installer composer.json files shouldn't have very strict constraints Apr 8, 2019
robbieaverill referenced this issue in silverstripe/recipe-authoring-tools Apr 15, 2019
@robbieaverill
Copy link

The reason it's like this is so that you get exactly the version we know we've tested and released when you install SilverStripe. There are other reasons for this as well, including that these versions have often been security tested in the specific configuration. I think there's possibly some scope to make it looser in parts of the recipes, though.

cc @silverstripe/core-team

@sminnee
Copy link
Member

sminnee commented Jun 28, 2019

Yeah I think that the requirements of the recipe’s composer.json being strict make sense, but not the installer. I think that all of Robbie’s arguments apply to the recipe.

@sminnee
Copy link
Member

sminnee commented Jun 28, 2019

Flagging as a high impact bug as this discourages people from installing security fixes.

@maxime-rainville
Copy link

I agree with making the installer constraint looser, so people can upgrade more easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants