M
M
Messi2020-10-19 13:33:08
git
Messi, 2020-10-19 13:33:08

The required branch is not installed through Composer?

There is a project with composer.json:

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "repositories": [
        {
            "type": "git",
            "url": "[email protected]:myproject/api.git"
        }
    ],
    "require": {
        "php": "^7.2",
        "myproject/api": "dev-feature/MV-122",
        "myproject/test": "^3.0",
    },
    "require-dev": {
        "phpunit/phpunit": "^8.5"
    },
    "config": {
        "platform": {
            "php": "7.2.5"
        }
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
}


On the second project that I'm trying to pull through composer has a branch feature/MV-122
In require I tried to put "myproject/api": "dev-feature/MV-122" and "myproject/api": "dev-feature-MV-122 ".
I can't install, I keep getting the error:

Problem 1
- myproject/test 3.2.1 requires myproject/api ^3.0|^4.0 -> satisfiable by myproject/api[v3.3.2, v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.1.0, v3.2.0, v3.3.0, v3.3.1, 4.0.0, 4.0.1, 4.0.2, 4.0.3] but these conflict with your requirements or minimum-stability .

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question