dsoares / roundcube-lastlogin

Roundcube plugin to save and show user login information and login history.
GNU General Public License v3.0
16 stars 12 forks source link

Composer update failes for dependencies #18

Closed cmonty14 closed 7 years ago

cmonty14 commented 8 years ago

Hi,

when running php composer.phar update I get this error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for dsoares/lastlogin dev-master -> satisfiable by dsoares/lastlogin[dev-master].
    - dsoares/lastlogin dev-master requires dsoares/geolocation ~0.1 -> satisfiable by dsoares/geolocation[0.1.0, 0.1.1, 0.1.2] but these conflict with your requirements or minimum-stability.

This is my current composer.json file:

{
    "name": "roundcube/roundcubemail",
    "description": "The Roundcube Webmail suite",
    "license": "GPL-3.0+",
    "repositories": [
        {
            "type": "pear",
            "url": "https://pear.php.net/"
        },
        {
            "type": "composer",
            "url": "https://plugins.roundcube.net/"
        },
        {
            "type": "vcs",
            "url": "https://github.com/roundcube/Net_Sieve.git"
        },
        {
            "type": "vcs",
            "url": "https://git.kolab.org/diffusion/PNL/php-net_ldap.git"
        }
    ],
    "require": {
        "php": ">=5.3.7",
        "roundcube/plugin-installer": "~0.1.6",
        "pear-pear.php.net/net_socket": "~1.0.12",
        "pear-pear.php.net/auth_sasl": "~1.0.6",
        "pear-pear.php.net/net_idna2": "~0.1.1",
        "pear-pear.php.net/mail_mime": "~1.10.0",
        "pear-pear.php.net/net_smtp": "~1.7.1",
        "pear-pear.php.net/crypt_gpg": "~1.4.2",
        "roundcube/net_sieve": "~1.5.0",
        "alexandregz/twofactor_gauthenticator": "dev-master",
        "dsoares/geolocation": "dev-master",
        "dsoares/lastlogin": "dev-master",
        "dsoares/removeattachments": "0.2.4",
        "kitist/html5_notifier": "v0.6.2",
        "roundcube/chbox": "0.2.4",
        "posteo/show_pgp_mime": "dev-master",
        "sblaisot/automatic_addressbook": "dev-master",
        "dsoares/rcguard": "dev-master",
        "pear/pear-core-minimal": "~1.10.1"
    },
    "require-dev": {
        "phpunit/phpunit": "*"
    },
    "suggest": {
        "pear-pear.php.net/net_ldap2": "~2.2.0 required for connecting to LDAP address books",
        "kolab/Net_LDAP3": "dev-master required for connecting to LDAP address books"
    },
    "minimum-stability": "dev"
}

Is this an issue with dependencies using constraints (dev-master)? When should I use exact version constraints vs. unbound version constraints?

THX

dsoares commented 7 years ago

I'm sorry for the late late (late*30 :wink:) reply to this issue.

You should use "dsoares/lastlogin": "~<version>" instead of dev-master, where <version> is the minimum package version you want/need; the same applies to my other repos.

Also, you don't need to add the geolocation plugin in the main configuration file. It will be automatically installed / uninstalled when you install/uninstall the plugin that requires it.

About this:

When should I use exact version constraints vs. unbound version constraints?

You should read the main documentation from the Composer website (better than me explaining):