Closed (won't fix)
Project:
htmLawed
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
21 Aug 2019 at 13:58 UTC
Updated:
7 Jan 2023 at 01:17 UTC
Jump to comment: Most recent
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
Comment #2
alpha2zee commentedI 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'.
Comment #3
alpha2zee commentedThis seems to be Drupal issue that cannot be resolved by modifying the Drupal 7 htmLawed module.
Comment #4
lwalley commentedComment #5
lwalley commentedIssue appears to be fixed, see #3327749: Unable to download htmlawed module with composer; type set to metapackage.