Issue
For example I want to require:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/google/google-api-php-client.git"
}
],
"require": {
"google/apiclient": "v1-master"
}
}
In this example I try require google/apiclient
on branch v1-master
. I get error:
[UnexpectedValueException]
Could not parse version constraint v1-master: Invalid version string "v1-master"
Solution
You need to prefix all dev branches (= non tagged) by dev-
.
To install the branch you need, use:
composer require google/apiclient:dev-v1-master
See composer docs.
Answered By - Tomas Votruba
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.