Skip to content

Plugin with basename foo.zip is not installed #773

Open

Description

Hey there, nice work on this plugin! Many tooling things to learn while browsing the code :)

The readme states this:

You could use arbitrary path or URL to check a plugin. For example, to check a plugin from a URL: wp plugin check https://example.com/plugin.zip or to check a plugin from a path: wp plugin check /path/to/plugin

I have created composer script in my plugin that creates a test dist-archive:

{
  "test:dist-archive": [
    "wp package install wp-cli/dist-archive-command",
    "config/scripts/generate-distignore.sh",
    "wp dist-archive . $(basename \"$(pwd)\").zip"
  ]
}

I run it like this:

composer test:dist-archive

That successfully creates a nice plugin.zip above my plugin in the /plugins folder. Now, according to the above cite from the readme, shouldn't I be able to do this?

wp plugin check ../plugin.zip

That fails with the error:

Error: Invalid plugin basename: Plugin with basename ../plugin.zip is not installed.

It indeed isn't installed. But I would love to be able to check it without needing to install it – otherwise this will be a painful manual process...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions