-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Update docs to install latest 2.x version #1491
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
I signed it! |
CLAs look good, thanks! |
The best way is not to specify version at all, so the latest could be installed. |
Hi @siburny 👋 |
I should've been more clear why I proposed this change. If you run the exact command from the docs
composer will install version 2.0.0. However, the latest one is 2.2.2 (at the moment). If you prefer not to specify the minor (.x) version in the docs, then we should use the following:
|
My php and composer versions
|
Just so we are on the same page what does the following output? mkdir testdir
cd testdir
..\composer require google/apiclient:^2.0
..\composer show |
Of course. Here is the output on my dev machine:
Also, here is the content of the created
|
This just hit me this morning. Let's change this to add a note that DOS users need to escape the escape character: |
Unfortunately,
|
So after trial and error, I found the right command: you need to include "quotes" around version number
which will produce correct results:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even better.
No description provided.