Skip to content
This repository has been archived by the owner on Jan 22, 2018. It is now read-only.

Failed to download drupal/core from dist #13

Open
powpow12 opened this issue May 31, 2017 · 2 comments
Open

Failed to download drupal/core from dist #13

powpow12 opened this issue May 31, 2017 · 2 comments

Comments

@powpow12
Copy link

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:

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.

@kasperg
Copy link
Member

kasperg commented Jun 1, 2017

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

@powpow12
Copy link
Author

powpow12 commented Jun 1, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants