drupal-core
drupal-core copied to clipboard
Failed to download drupal/core from dist
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.
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:
- Set a temporary limit to
drupal/corein mycomposer.json:drupal/core: 8.2.8 - Run
composer update drupal/core - Verify that urls for
drupal/corenow use https://github.com/drupal/core.git and that SHAs are updated. - Reset changes to
composer.json - Commit
composer.lock
@kasperg I ran composer require drupal/core:8.2.8 and it did not update the source url.