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

After download google-api-php-client v2.13.0 via composer, I cant see v2.13.0 in Client.php file. #2365

Closed
BalachandarNatarajan opened this issue Jan 7, 2023 · 5 comments
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. type: question Request for information or clarification. Not an issue.

Comments

@BalachandarNatarajan
Copy link

Hi,
I downloaded google-api-php-client v2.13.0 via composer using composer command. But i cant see the latest downloaded version in Client.php file which resides src directory instead that i have v2.12.6 only.

Kindly update the current version of google-api-php-client in Client.php file.

@BalachandarNatarajan BalachandarNatarajan changed the title google-api-php-client After download google-api-php-client v2.13.0 via composer, I cant see v2.13.0 in Client.php file. Feb 10, 2023
@BalachandarNatarajan
Copy link
Author

Still i cant see version 2.13.0 in Client.php file.
kindly reply.

@bshaffer
Copy link
Contributor

You're correct that const LIBVER in Google\Client is out of date, and not getting updated by our release tools.

@BalachandarNatarajan
Copy link
Author

Thanks for your reply. Then where to find the version of google-api-php-client after downloaded.

@bshaffer
Copy link
Contributor

I would recommend just using composer to see the versions of the dependencies you have installed. You shouldn't need to be using that information in your production code

@saranshdhingra saranshdhingra added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. type: question Request for information or clarification. Not an issue. priority: p3 Desirable enhancement or fix. May not be included in next release. labels Mar 23, 2023
@saranshdhingra
Copy link
Contributor

Hi @BalachandarNatarajan
As Brent mentioned, this might be considered an anti pattern, but if you still intend to do it, you could just fetch the info from composer from within the scope of your script.

Something like exec('composer show google/apiclient | grep versions'); might help you and you can do some string manipulation to strip the unwanted text.

However, this is obviously platform dependant and is probably hacky.

I'll be closing this for now. But we'll update here once the LIBVER issue is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

3 participants