When tried to download htmlawed via composer.json, the module is not downloaded. Not sure if this is because the type is listed as "metapackage" instead of "drupal-module".

composer.json
"drupal/htmlawed": "^3.7",

composer.lock

{
    "name": "drupal/htmlawed",
    "version": "3.7.0",
    "require": {
        "drupal/drupal": "~7.0",
        "drupal/htmlawed": "self.version"
    },
    "type": "metapackage",
    "extra": {
        "branch-alias": {
            "dev-3.x": "3.x-dev"
        },
        "drupal": {
            "version": "7.x-3.7",
            "datestamp": "1512623585",
            "security-coverage": {
                "status": "covered",
                "message": "Covered by Drupal's security advisory policy"
            }
        }
    },
    "notification-url": "https://packages.drupal.org/7/downloads",
    "license": [
        "GPL-2.0-or-later"
    ],
    "authors": [
        {
            "name": "alpha2zee",
            "homepage": "https://www.drupal.org/user/201451"
        }
    ],
    "homepage": "https://www.drupal.org/project/htmlawed",
    "support": {
        "source": "https://git.drupalcode.org/project/htmlawed"
    }
},
composer show -a drupal/htmlawed
name     : drupal/htmlawed
descrip. :
keywords :
versions : 3.x-dev, 3.7.0, 3.6.0, 3.5.0, 3.4.0, 3.3.0, 3.2.0, 3.1.0, 3.0.0, 2.x-dev, dev-3.x, dev-2.x
type     : metapackage
license  : GNU General Public License v2.0 or later (GPL-2.0-or-later) (OSI approved) https://spdx.org/licenses/GPL-2.0-or-later.html#licenseText
source   : []
dist     : []
names    : drupal/htmlawed

support
source : https://git.drupalcode.org/project/htmlawed

requires
drupal/htmlawed 3.x-dev
drupal/drupal ~7.0

Comments

xlin created an issue. See original summary.

alpha2zee’s picture

Assigned: Unassigned » alpha2zee

I am not sure what the problem might be. I was able to use Composer (latest version) with PHP 7.3 to install Drupal 8 and then the htmlawed module for Drupal 8. In composer/installed.json and composer.lock files, htmlawed gets noted as 'type: drupal-module'.

However, for Drupal 7 (fresh install with Composer), htmlawed gets noted as 'type: metapackage'. While the terminal output shows 'Installing drupal/htmlawed (3.7.0)', I don't see the module folder within the Drupal 7 installation directory.

The Composer packages for the htmlawed module are auto-generated by Drupal. I don't know why one is set as 'metapackage' and the other as 'module'.

alpha2zee’s picture

Status: Active » Closed (won't fix)

This seems to be Drupal issue that cannot be resolved by modifying the Drupal 7 htmLawed module.

lwalley’s picture

lwalley’s picture