Skip to content

Composer 2.8.7 breaks "rc" releases because of updated regex pattern #12364

@minorOffense

Description

@minorOffense

My composer.json:

{
  "name": "opl/opl_about_profile",
  "description": "OPL About site.",
  "type": "project",
  "license": "GPL-2.0-or-later",
  "homepage": "https://www.drupal.org/project/drupal",
  ...
  "autoload": {
    "files": [
      "load.environment.php"
    ]
  },
  "version": "1.0.0-rc.8"
}

When I run this command:

composer install

I get the following output:

In Factory.php line 317:
                                                                               
  "./composer.json" does not match the expected JSON schema:                   
   - version : Does not match the regex pattern ^v?\d+(\.\d+){0,3}(-(dev|(pat  
  ch|p|alpha|a|beta|b|RC)\d*))?$|^dev-.*$       

And I expected this to happen:

Run the install without error.

The regex doesn't match on the version string anymore with "rc.1" and seems to require it to be "RC.1" instead now? It worked fine in 2.8.6 but in 2.8.7 it's now enforcing some new semver rule?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions