Answer the question
In order to leave comments, you need to log in
Why composerer does not connect the branch I need from the repository?
Hello!
There is a repository on bitbucket, I try to connect this repository to the project: composer require test/lib:dev-master
,
in response I get:
[InvalidArgumentException]
Could not find package test/lib in a version matching dev-master
. composer require test/lib
the release-1.0.1 branch is connected. How to connect the branch I need? composer require test/lib:develop
composer require test/lib:master
[UnexpectedValueException]
Could not parse version constraint develop: Invalid version string "develop"
[InvalidArgumentException]
Could not find package test/lib in a version matching master
Answer the question
In order to leave comments, you need to log in
Try adding -dev
at the end of the branch you need:
composer require test/lib:master-dev
composer require test/lib:release-1.0.1-dev
If it says that it cannot find the specified package test/lib
, then it is not on packagist.org (composer looks for packages there by default), therefore, you need to write the package address in composer.json:
"repositories": [
{
"type": "git",
"url": "[email protected]:test/lib.git"
},
]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question