Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Can't use composer to require new modules #238

Closed
kevinquillen opened this issue Jul 21, 2016 · 5 comments
Closed

Can't use composer to require new modules #238

kevinquillen opened this issue Jul 21, 2016 · 5 comments

Comments

@kevinquillen
Copy link

Trying to add Pathauto as an example. It wouldn't work with minimum-stability set to dev, so I changed my minimum stability to alpha as many modules only have alpha tagged releases, here is the output from console:

composer require drupal/pathauto
Using version ^1.0@alpha for drupal/pathauto
./composer.json has been updated
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for drupal/security_review 8.* -> satisfiable by drupal/security_review[8.1.x-dev].
    - Removal request for drupal/security_review == 8.1.9999999.9999999-dev
  Problem 2
    - drupal/lightning 8.1.02 requires drupal/pathauto ^8.1.0 -> satisfiable by drupal/pathauto[8.1.0-alpha3] but these conflict with your requirements or minimum-stability.
    - drupal/lightning 8.1.02 requires drupal/pathauto ^8.1.0 -> satisfiable by drupal/pathauto[8.1.0-alpha3] but these conflict with your requirements or minimum-stability.
    - Installation request for drupal/lightning ~8.1.0 -> satisfiable by drupal/lightning[8.1.02].

What is requesting Security Review and how can I install Pathauto?

@grasmash
Copy link
Contributor

Can you share your composer.json?

@kevinquillen
Copy link
Author

{
  "name":    "velir/test",
  "license": "proprietary",
  "type":    "project",
  "description": "Testing blt",
  "repositories": [
    {
      "type": "composer",
      "url":  "https://packages.drupal.org/8"
    }
  ],
  "require": {
    "composer/installers":                        "^1.0.20",
    "cweagans/composer-patches":                  "~1.0",
    "drupal/acquia_connector":                    "8.1.*",
    "drupal/acsf":                                "~8.1",
    "drupal/core":                                "~8",
    "drupal/console":                             "~0.10",
    "drupal/memcache" :                           "8.*",
    "drupal/security_review" :                    "8.*",
    "roave/security-advisories":                  "dev-master",
    "drupal-composer/drupal-scaffold":            "^2.0.1",
    "drupal-composer/drupal-security-advisories": "8.0.x-dev",
    "drupal/lightning":                           "~8.1.0"
  },
  "require-dev": {
    "behat/behat":                  "3.0.*",
    "behat/mink":                   "1.6@stable",
    "behat/mink-extension":         "*",
    "behat/mink-goutte-driver":     "*",
    "behat/mink-selenium2-driver":  "*",
    "behat/mink-browserkit-driver": "*",
    "drush/drush":                  "^9.0",
    "drupal/drupal-extension":      "~3.0",
    "drupal/coder":                 "~8.2",
    "phpunit/phpunit":              "4.6.*",
    "squizlabs/php_codesniffer":    "2.*",
    "phing/phing":                  "dev-master#0ef30e55bb5871cb38903cc0ee9d76074118a22c",
    "jakoch/phantomjs-installer":   "1.9.8",
    "jarnaiz/behat-junit-formatter": "^1.2",
    "geerlingguy/drupal-vm": "~3.1"
  },
  "autoload-dev": {
    "psr-4": {
      "Drupal\\Tests\\PHPUnit\\": "tests/phpunit/src/"
    }
  },
  "minimum-stability": "alpha",
  "prefer-stable":     true,
  "extra": {
    "installer-paths": {
      "docroot/core":                     ["type:drupal-core"],
      "docroot/modules/contrib/{$name}":  ["type:drupal-module"],
      "docroot/profiles/contrib/{$name}": ["type:drupal-profile"],
      "docroot/themes/contrib/{$name}":   ["type:drupal-theme"],
      "drush/contrib/{$name}":            ["type:drupal-drush"]
    },
    "patches": {
      "drupal/core": {
        "Ignore front end vendor folders to improve directory search performance": "https://www.drupal.org/files/issues/ignore_front_end_vendor-2329453-116.patch"
      }
    }
  },
  "scripts": {
    "install-phantomjs": "PhantomInstaller\\Installer::installPhantomJS",
    "drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold",
    "post-install-cmd": [
      "PhantomInstaller\\Installer::installPhantomJS"
    ],
    "post-update-cmd": [
      "PhantomInstaller\\Installer::installPhantomJS"
    ]
  }
}

@kevinquillen
Copy link
Author

If I use the packagist URL, it tries to download 7.x of Pathauto. I have to
specify: drupal/pathauto:^8.1.0@alpha

On Thu, Jul 21, 2016 at 12:52 PM, Matthew Grasmick <[email protected]

wrote:

Can you share your composer.json?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#238 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAWGwF2M1Lhlz8YZsPbKzen0prLqTxrFks5qX6OwgaJpZM4JR8j_
.

@grasmash
Copy link
Contributor

@kevinquillen This seems like an issue with Drupal Packagist correctly parsing module versions. That can't be addressed by BLT. I would suggest filing an issue here:

https://github.com/drupal-composer/drupal-packagist

@haynescw
Copy link
Contributor

If I may add to this, I thought lightning has pathauto as part of its profile. Why would you ever need to manually add pathauto. It would make sense to try using a module that is not already included in the installation profile, that is if you are trying to prove proof of concept. I had no problem adding coffee, fieldgroup, and redirect to our set of modules. Maybe try one of those.

@grasmash grasmash closed this as completed Aug 9, 2016
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

3 participants