Skip to content

Can't install REST-API plugin due to naming convention #7

@bendoh

Description

@bendoh

composer-wp is unable to install the REST API plugin. I think this is because it doesn't follow any sort of proper semver convention; it's been releasing betas as 2.0-betaN, where N is now up to 13.

When I try to install the plugin via composer-wp at these versions, it is unable to find them.

The plugin is tagged correctly in the subversion repository and has the proper header structure with the 'Version' plugin header matching, e.g.,

https://plugins.svn.wordpress.org/rest-api/tags/2.0-beta12/plugin.php

When I run the debugger against the code, I put a breakpoint in Repository/Config/Builtin/WordPressPlugins.php and attempt to break when the 'rest-api' package is fed into filterPackages(), but it never seems to hit that point, suggesting to me that there's some sort of validation on the version that's happening deeper in the composer core and thus not percolating up to this level of extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions