After switching from packagist.org to https://packages.drupal.org/8 for composer builds the "type" for coder is now a drupal-module which has changed from the packagist type and causes the coder module to install incorrectly inside the contrib module directory instead of inside the top level vendor directory.

Comments

ndrake86 created an issue. See original summary.

ndrake86’s picture

Difference in the json manifests for packages.drupal and packagist.
packagist:

"8.2.7": {
                "name": "drupal/coder",
                "description": "Coder is a library to review Drupal code.",
                "keywords": [
                    "standards",
                    "phpcs",
                    "code review"
                ],
                "homepage": "https://www.drupal.org/project/coder",
                "version": "8.2.7",
                "version_normalized": "8.2.7.0",
                "license": [
                    "GPL-2.0+"
                ],
                "authors": [],
                "source": {
                    "type": "git",
                    "url": "https://github.com/klausi/coder.git",
                    "reference": "a5b5f6b5769393a016da0d106a3b33f932c73331"
                },
                "dist": {
                    "type": "zip",
                    "url": "https://api.github.com/repos/klausi/coder/zipball/a5b5f6b5769393a016da0d106a3b33f932c73331",
                    "reference": "a5b5f6b5769393a016da0d106a3b33f932c73331",
                    "shasum": ""
                },
                "type": "library",
                "time": "2016-03-27T09:53:21+00:00",
                "require": {
                    "php": ">=5.4.0",
                    "squizlabs/php_codesniffer": ">=2.5.1",
                    "symfony/yaml": ">=2.0.0"
                },
                "require-dev": {
                    "phpunit/phpunit": ">=3.7"
                },
                "uid": 769985
            },

packages.drupal:

"2.7.0": {
                "keywords": "Actively maintained,Developer",
                "homepage": "https://www.drupal.org/project/coder",
                "version": "2.7.0",
                "version_normalized": "2.7.0.0",
                "license": "GPL-2.0+",
                "authors": [
                    {
                        "name": "douggreen",
                        "homepage": "https://www.drupal.org/user/29191"
                    },
                    {
                        "name": "klausi",
                        "homepage": "https://www.drupal.org/user/262198"
                    },
                    {
                        "name": "solotandem",
                        "homepage": "https://www.drupal.org/user/240748"
                    },
                    {
                        "name": "stella",
                        "homepage": "https://www.drupal.org/user/66894"
                    },
                    {
                        "name": "sun",
                        "homepage": "https://www.drupal.org/user/54136"
                    }
                ],
                "support": {
                    "source": "http://cgit.drupalcode.org/coder"
                },
                "source": {
                    "type": "git",
                    "url": "https://git.drupal.org/project/coder",
                    "reference": "8.x-2.7"
                },
                "dist": {
                    "type": "zip",
                    "url": "https://ftp.drupal.org/files/projects/coder-8.x-2.7.zip",
                    "shasum": "3ac8629c34105d2974deb80836dba2e48a4113af"
                },
                "type": "drupal-module",
                "uid": "coder-2702769",
                "name": "drupal/coder",
                "extra": {
                    "branch-alias": {
                        "dev-2.x": "2.x-dev"
                    },
                    "drupal": {
                        "version": "8.x-2.7",
                        "datestamp": "1467752939"
                    }
                },
                "suggest": {
                    "drupal/core": "Required by drupal/testmodule"
                },
                "require": {
                    "drupal/core": "~8.0"
                }
            },

All I can see is the missing requirements for php_codesniffer and symphony.

klausi’s picture

Not sure what we can do about that - I guess packages.drupal.org should not overwrite the provided composer.json file of a project if it has one?

klausi’s picture

klausi’s picture

Status: Active » Fixed

This has been fixed specifically for Coder on drupal.org, Coder installs now as expected.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.