Invalid composer package definition

Created on 18 November 2023, 7 months ago
Updated 22 November 2023, 7 months ago

I tried following the readme and could not get composer to work. It kept throwing:

  A repository of type "package" contains an invalid package definition: Invalid package information:                                          
  name : yairEO/tagify is invalid, it should not contain uppercase characters. We suggest using yair-eo/tagify instead. 

So I had to modify the parts I added to composer and make them all lowercase:

        {
            "type": "package",
            "package": {
              "name": "yaireo/tagify",
              "version": "4.17.9",
              "type": "drupal-library",
              "dist": {
                "url": "https://github.com/yaireo/tagify/archive/refs/tags/v4.17.9.zip",
                "type": "zip"
              }
            }
          },
          {
            "type": "package",
            "package": {
              "name": "yaireo/dragsort",
              "version": "1.3.1",
              "type": "drupal-library",
              "dist": {
                "url": "https://github.com/yaireo/dragsort/archive/refs/tags/v1.3.1.zip",
                "type": "zip"
              }
            }
          },

Then use:

composer require yaireo/dragsort

and

composer require yaireo/tagify

Worked great after that.

🐛 Bug report
Status

Fixed

Version

1.1

Component

Documentation

Created by

🇺🇸United States duckydan

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024