Example composer.json is not correct

Created on 14 August 2018, over 6 years ago
Updated 11 June 2024, 6 months ago

In the example composer.json file there are some extra packages listed. For example:

          {
            "type": "package",
            "package": {
                "name": "desandro/masonry",
                "version": "3.3.1",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/desandro/masonry/archive/v3.3.1.zip",
                    "type": "zip"
                }
            }
        },

The problem here is that the package "desandro/masonry" is listed on https://packagist.org/packages/desandro/masonry and therefore if you run composer install, composer will get the package from packagist.org and install it in the vendor directory.
My solution is to rename the package name in composer.json to for example "lib-desandro/masonry".

🐛 Bug report
Status

Active

Version

1.0

Component

Documentation

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024