Example composer.json is not correct

Created on 14 August 2018, about 7 years ago
Updated 11 June 2024, over 1 year 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.

  • Status changed to Closed: outdated 14 days ago
  • 🇬🇧United Kingdom d.fisher

    Closing as outdated due to the age of this issue. The composer.json currently passes all tests and seems to be correct and working. If you feel this is still an issue please feel free to open a new issue against the 2.x branch.

Production build 0.71.5 2024