Skip to content

Packages installed from git where the git user has capital letters don't show up in package list #43

@javorszky

Description

@javorszky

I've created an example command here: https://github.com/CapitalWPCLI/examplecommand

To reproduce:

  1. wp package install git@github.com:CapitalWPCLI/examplecommand.git
  2. wp package list, see that it is not in the list
  3. go and look at the composer.json file in ~/wp-cli/packages folder. See that the package's key is the github user : repository
  4. because of the code that lists the packages matches the package id (all lowercase) with what's in the composer json, it will not be matched.

Environment

$ uname -a
Darwin GaborrMBP 17.0.0 Darwin Kernel Version 17.0.0: Thu Aug 24 21:48:19 PDT 2017; root:xnu-4570.1.46~2/RELEASE_X86_64 x86_64

$ which -a php
/usr/local/bin/php
/usr/bin/php

$ php -v
PHP 7.1.10 (cli) (built: Oct  6 2017 01:08:53) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans

no suhosin

Which version of WordPress
none, not specific

$ which -a wp
stat $(which wp)
/usr/local/bin/wp
16777220 56521130 -rwxr-xr-x 1 javorszky staff 0 4292472 "Oct 15 13:03:17 2017" "Sep 10 17:58:46 2017" "Sep 27 16:50:55 2017" "Sep 10 17:58:44 2017" 4194304 8384 0 /usr/local/bin/wp

Hope this is enough information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions