Skip to content

Drush and Drupal always downloaded (and the latter out of date) #3

@jpstacey

Description

@jpstacey

Steps to repeat

  • run composer update against the following:
{
  "repositories": {
    "drupal": {
      "type": "composer",
      "url": "http://static.drupal-packagist.org/v0.1.0/"
    }
  },
  "require": {
    "composer/installers": "~1.0",
    "drupal/advanced_help": "7.*"
  }
}

What should happen

  • advanced_help has no dependencies in its .info and should therefore be downloaded on its own.

What actually happens

  • advanced_help is downloaded
  • Drupal 7.28 (superseded on July 16) is downloaded with it, but into the weird folder vendor/drupal/drupal

More info

Downloading Drupal isn't of much use if (a) it's in an odd location and (b) it's out of date (and is a version that now has multiple security advisories against it.) I know practically all modules "depend" on Drupal, but doing this in the above example has turned a 75kB download into a 3+MB one, without the user being warned or having a choice to prevent it.

The best thing would be to require explicit download of Drupal in the JSON file, so that the developer can choose a version (or indeed choose not to download it at all, if they already have a local copy, or maybe choose to run off their own fork e.g. Backdrop.)

Depending on the module, Drush is sometimes randomly downloaded without explicit request either. Very few modules "depend" on Drush, although many of them can make use of it. Drush is also quite a large download and codebase, compared to many modules: 600+kB zipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions