Skip to content

Updating example README to match note below it #7117

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

Closed
wants to merge 1 commit into from
Closed

Updating example README to match note below it #7117

wants to merge 1 commit into from

Conversation

darrylhein
Copy link
Contributor

The note below says the instructions installs the latest stable version, but it was actually installing "~1"

The note below says the instructions installs the latest stable version, but it was actually installing "~1"
@xabbuh
Copy link
Member

xabbuh commented Nov 6, 2016

👍

Status: Reviewed

@javiereguiluz
Copy link
Member

👍

A minor change but I love it! Thanks @darrylhein

@wouterj
Copy link
Member

wouterj commented Nov 6, 2016

Thanks for indentifying the inconsistency and fixing it @darrylhein!

However, I'm 👎 on the change. Having the version constraint in here is very important. So instead of updating the example, the note below it should be updated imo.

In case you wonder why the version constraint is important imo, imagine this: The docs of bundle A show composer require acme/bundle-a as install instruction. It'll install 1.4 and everything is fine.
Now, the bundle is completely refactored in 2.0. When someone follows the installation instructions in the 1.4 documentation, they'll get the 2.0 version of the bundle. That'll cause lots of confusion.

@darrylhein
Copy link
Contributor Author

darrylhein commented Nov 8, 2016

@wouterj I'm fine either way; just trying to make sure the docs are clear.

But I would disagree slightly because composer will install the latest stable (with the caret) by default, thus keeping within the current major version (if my understanding is correct). The bundle creator should make it clear which version their docs are for. ....But we all know that doesn't always happen.

If it's preferred, I can make the change or leave as is.

@xabbuh
Copy link
Member

xabbuh commented Nov 22, 2016

I tend to agree with @wouterj and IIRC that also was the reason why we did it this way initially.

@javiereguiluz
Copy link
Member

I'd like you to consider again this proposal. I'm strongly in favor of it for several reasons:

  • First, the ~1 looks so weird that it looks like an error. If at least it was ~1.2 or ~1.8 or whatever.
  • Second, the scenario described by Wouter is real ... but not realistic/common. Documentation is clearly versioned on symfony.com, GitHub, etc. so you don't read the old docs of a bundle unawarely and end up with the new version.

@xabbuh
Copy link
Member

xabbuh commented Feb 17, 2017

@javiereguiluz But this is the template we offer as a starting point to bundle authors. Thus, our own versioning policy does not necessarily (very likely) not apply there.

@javiereguiluz
Copy link
Member

javiereguiluz commented Feb 17, 2017

@xabbuh ask yourself: when what's the last time you provided the version number explicitly when installing a bundle? Personally I can't remember.

I'd say that we can safely remove this ... and if you do too advanced things with your bundle, you already know what to do here (if you are that advanced, you won't read these instructions anyway).

@wouterj
Copy link
Member

wouterj commented Mar 5, 2017

Documentation is clearly versioned on symfony.com, GitHub, etc. so you don't read the old docs of a bundle unawarely and end up with the new version.

I can't see how this functions as an argument in favor/against this PR. The problem here is that documentation is versioned, but removing the version from install isn't: It'll always be the latest stable.

So when reading the, clearly versioned, 1.0 documentation, composer install acme/bar will give you 2.0 without you even knowing it. Please note that people needing the composer install instructions probably aren't experts with Composer. Using the Composer output to identify 2.0 is installed isn't that obvious for people new to Composer.

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, merge this proposal. It may be not perfect (as Wouter said) but it's much better than keeping the strange "~1" version constraint.

@javiereguiluz javiereguiluz modified the milestones: 2.2, 3.3 Jan 9, 2018
@javiereguiluz
Copy link
Member

@darrylhein it took us too long to merge this, but we finally did it. Thank you!

javiereguiluz added a commit that referenced this pull request Jan 9, 2018
This PR was submitted for the 3.1 branch but it was merged into the 3.3 branch instead (closes #7117).

Discussion
----------

Updating example README to match note below it

The note below says the instructions installs the latest stable version, but it was actually installing "~1"

Commits
-------

c09b6e3 Updating example README to match note below it
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.

6 participants