Juris Malinens
Juris Malinens

Reputation: 1271

How in composer.json include 2 different branches of the same repository in different directories?

Now I have:

"user/package": "dev-master",

But I want to use 2 branches at the same time:

"user/package": "dev-master", # /vendor/user/package
"user/package": "demo", # /vendor/user/demo

Is it even possible? Repository is hosted on Github

Upvotes: 1

Views: 424

Answers (1)

Anyone
Anyone

Reputation: 2835

As far as I know you cannot use 2 branches at the same time. This would cause conflicts in both autoloading and building the dependency tree. You can always use only 1 version of 1 package.

Upvotes: 2

Related Questions