consolidation / cgr

Safe replacement for `composer global require`
452 stars 24 forks source link

Cant update package #28

Closed ajthinking closed 6 years ago

ajthinking commented 6 years ago
cgr stimpack-io/stimpack #Using version ^0.0.12
# *pushes new release to packagist*
composer require stimpack-io/stimpack:0.0.13 # just confirming new version is available
# But!
cgr update stimpack-io/stimpack # Nothing to install or update
composer global clearcache
cgr update stimpack-io/stimpack # Nothing to install or update

Examining ~/.composer/global/stimpack-io/stimpack/composer.json view this, the same as when package was first installed:

{
    "require": {
        "stimpack-io/stimpack": "^0.0.12"
    }
}

Im assuming im missing something very basic here? This tool is a lifesaver, thanks so much!

ajthinking commented 6 years ago

Turns out nothing cgr related! Just needed to change my release naming convention from "v1.2.3" to "1.2.3" in order for ^ to work. Thanks again, awesome repo :)