=5.3.2", "kriswallsmith/buzz": "0.7...">

Force composer to load git repo instead of zip

I have a problem with the composer.

 "require": {
        "php":                ">=5.3.2",
        "kriswallsmith/buzz": "0.7"
    },

Repo https://github.com/kriswallsmith/Buzz/tree/v0.7

Unfortunately, github returns 502 for this request https://github.com/kriswallsmith/Buzz/zipball/v0.7

Request URL: https://nodeload.github.com/kriswallsmith/Buzz/zipball/v0.7
Status Code: 502 Bad Gateway

Fortunately, the git clone works;)

Is it possible to say / ask the composer to a git clone user instead of downloading a zipball for this dependency?

+5
source share
3 answers

The quickest solution is to start installor updatewith the option--prefer-source

php composer.phar install --prefer-source

, git all, , , .

+8

. Composer version 1.8.3 2019-01-30 08:31:33

"config": {
    "preferred-install": {
        "drupal/external_entities": "source",
        "*": "dist"
    }
}

composer require drupal/external_entities

git-.

+1

, , 'VCS', , VCS, , GIT packagist

.json

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/kriswallsmith/Buzz"
        }
    ],
    "require": {
        "kriswallsmith/buzz": "dev-0.17.x"
    }
}

0

All Articles