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

Composer: add informational notes about the suggested dependencies #646

Merged
merged 1 commit into from Jun 10, 2018

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented May 16, 2018

Just suggesting a package does not explain to a user why it would be interesting for them to install it and I've already had question about the suggestion.

The suggest entry in the composer.json file has a value which is not actually intended for version constraints, but to add a hint to the user about why they should install the package.

Up to now, the value in the PHPCompatibility composer.json was used for a version constraint. While this is still a good idea to mention in this case as the Composer plugin needs a certain version to be compatible with the same PHP versions PHPCompatibility supports and the security-advisories needs to be at the uncommon dev-master, adding the hint on why the package is suggested should help users even more.

Ref: https://getcomposer.org/doc/04-schema.md#suggest

@jrfnl jrfnl added this to the 8.2.0 milestone May 16, 2018
@jrfnl jrfnl requested a review from wimg May 16, 2018 13:05
@MarkMaldaba
Copy link
Contributor

MarkMaldaba commented May 16, 2018

Would it not be a good idea to also add an explanation for the other suggestion, which is arguably even more unnecessary for running the sniffs...?

@jrfnl jrfnl force-pushed the feature/composer-add-explanation-to-suggest branch from 8b0e0db to f331e73 Compare May 16, 2018 15:26
@jrfnl
Copy link
Member Author

jrfnl commented May 16, 2018

@MarkMaldaba Absolutely! Sorry, I was focused on the composer plugin as I was pulling the same change to several external standards I contribute to, so completely overlooked the second entry here.

I've amended the commit to include a hint to end-users about the second dependency as well now.

@jrfnl jrfnl changed the title Composer: add note about why the DealerDirect plugin is suggested Composer: add informational notes about the suggested dependencies May 16, 2018
@jrfnl jrfnl added the PR: quick merge PR only contains relatively simple changes label Jun 8, 2018
@jrfnl jrfnl force-pushed the feature/composer-add-explanation-to-suggest branch from f331e73 to a23f272 Compare June 9, 2018 16:36
Just suggesting a package does not explain to a user why it would be interesting for them to install it and I've already had question about the suggestion.

The `suggest` entry in the `composer.json` file has a value which is not actually intended for version constraints, but to add a hint to the user about why they should install the package.

Up to now, the value in the PHPCompatibility `composer.json` was used for a version constraint. While this is still a good idea to mention in this case as the Composer plugin needs a certain version to be compatible with the same PHP versions PHPCompatibility supports and the `security-advisories` needs to be at the uncommon `dev-master`, adding the hint on why the package is suggested should help users even more.

Ref: https://getcomposer.org/doc/04-schema.md#suggest
@wimg wimg merged commit 567cc39 into master Jun 10, 2018
@jrfnl jrfnl deleted the feature/composer-add-explanation-to-suggest branch June 10, 2018 22:25
@jrfnl jrfnl removed the PR: quick merge PR only contains relatively simple changes label Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants