Skip to content

Fix error in bundle installation standard example #4267

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

Merged
merged 1 commit into from
Sep 25, 2014
Merged

Fix error in bundle installation standard example #4267

merged 1 commit into from
Sep 25, 2014

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Sep 25, 2014

I also included the class name, to make it more clear.

Q A
Doc fix? yes
New docs? no
Applies to all
Fixed tickets -

@@ -212,7 +212,7 @@ following standardized instructions in your ``README.md`` file.
following command to download the latest stable version of this bundle:

```bash
$ composer require <package-name> "~1"
$ composer require <package-name> "~1.0"
Copy link
Member Author

Choose a reason for hiding this comment

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

~1 is equal to *, which I don't think you want here :)

Copy link
Member

Choose a reason for hiding this comment

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

no it is not. ~1 is actually the same than ~1.0. The semver operator will never allow bumping to the next major version, as BC versions are not BC

Copy link
Contributor

Choose a reason for hiding this comment

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

interesting information @stof thanks! however i agree with @wouterj to give clarity, and because i even recommend locking things to the third number with ~ to be more responsible on even functionality addition that gets in.

Copy link
Member

Choose a reason for hiding this comment

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

I just checked and the Composer doc does not describe this case. It might be worth a contribution...

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Interesting, thanks @stof. I've reverted this change.

@wouterj
Copy link
Member Author

wouterj commented Sep 25, 2014

I'm going to merge this, as it annoys me when I copy the template to apply it on bundle docs.

However, we can remove the version completely from the require command since it defaults to stable in the newer composer versions. What do you think, @weaverryan @javiereguiluz ?

@javiereguiluz
Copy link
Member

Thanks for the fix!

Regarding the version number, I don't have a strong opinion about what to do. It's cool to not provide the version, but only works on recent Composer versions. I don't know which is the best solution here.

@wouterj
Copy link
Member Author

wouterj commented Sep 25, 2014

@javiereguiluz I've thought about it and I don't like it. Assume a library has a 1.0 version and releases 2.0. Both documentations are still visible and now 1.0 will install the 2.0 version. That isn't nice :)

@wouterj wouterj merged commit bd7da67 into 2.3 Sep 25, 2014
wouterj added a commit that referenced this pull request Sep 25, 2014
This PR was merged into the 2.3 branch.

Discussion
----------

Fix error in bundle installation standard example

I also included the class name, to make it more clear.

| Q   | A
| --- | ---
| Doc fix? | yes
| New docs? | no
| Applies to | all
| Fixed tickets | -

Commits
-------

bd7da67 Fix error in code
@wouterj wouterj deleted the fix-error branch September 25, 2014 15:35
@stof
Copy link
Member

stof commented Sep 25, 2014

I agree that we should keep the version info for the reason of supporting older docs

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.

4 participants