drupal-core icon indicating copy to clipboard operation
drupal-core copied to clipboard

Failed to download drupal/core from dist

Open powpow12 opened this issue 8 years ago • 2 comments

Hello, I don't know if this is right spot repo for this error but here it goes. I am trying to run composer install. All dependencies are loaded except drupal/core. I get the following error:

  • Installing drupal/core (8.2.8) Downloading: Failed Failed to download drupal/core from dist: The "https://api.github.com/repos/drupal/core/zipball/c63ef7a000bdfe2286cf2eeec6efdf4298dfc6a8" file could not be downloaded (HTTP/1.1 302 Found) Now trying to download from source
  • Installing drupal/core (8.2.8) Cloning c63ef7a000 from cache c63ef7a000bdfe2286cf2eeec6efdf4298dfc6a8 is gone (history was rewritten?)

Here is my composer.lock:

"name": "drupal/core",
            "version": "8.2.8",
            "source": {
                "type": "git",
                "url": "https://github.com/drupal/core.git",
                "reference": "7ccc248f4058dd5985ad0c61c129243d0d2b58b8"
            },

Another developer suggested changing the url line to the following:

"url": "https://github.com/drupal-composer/drupal-core.git",

I'll report back.

powpow12 avatar May 31 '17 15:05 powpow12

I am experiencing the same problems.

My theory is that the repository for the drupal/core package has been changed from https://github.com/drupal-composer/drupal-core.git to https://github.com/drupal/core.git.

This is a seamless transition for 8.3.x because SHAs are the same between the two repos. For 8.2.x they differ. This causes the problem at hand.

For me the following steps fixed the problem:

  1. Set a temporary limit to drupal/core in my composer.json: drupal/core: 8.2.8
  2. Run composer update drupal/core
  3. Verify that urls for drupal/core now use https://github.com/drupal/core.git and that SHAs are updated.
  4. Reset changes to composer.json
  5. Commit composer.lock

kasperg avatar Jun 01 '17 08:06 kasperg

@kasperg I ran composer require drupal/core:8.2.8 and it did not update the source url.

powpow12 avatar Jun 01 '17 15:06 powpow12