These are chat archives for composer/composer

15th
Jan 2016
Ben Johnson
@mmic-bjohnson
Jan 15 2016 15:32
Hi, everyone! I'm trying to determine why I get this message:
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Can only install one of: mmic-themes/frontend-intranet[dev-master, v1.0.0].
    - Can only install one of: mmic-themes/frontend-intranet[dev-master, v1.0.0].
    - Installation request for mmic-themes/frontend-intranet ~1.0 -> satisfiable by mmic-themes/frontend-intranet[v1.0.0].
    - Installation request for mmic-themes/frontend-intranet == 9999999-dev -> satisfiable by mmic-themes/frontend-intranet[dev-master].
The repository in question has been tagged with v1.0.0, and the tags pushed, so I'm not sure why this dependency fails to be resolved. I've tried composer update on another machine, with the same composer.json contents, and it works fine.
Kevin Auvinet
@ke20
Jan 15 2016 15:36
I'm not an expert but are you tried to clear the composer cache ?
Ben Johnson
@mmic-bjohnson
Jan 15 2016 15:36
@ke20 Hey, thanks for the response! I did try that. :/

The require line looks like this:

"mmic-themes/frontend-intranet": "~1.0"

Kevin Auvinet
@ke20
Jan 15 2016 15:37
@mmic-bjohnson Arf sorry, I don't know at the moment ... :(
Ben Johnson
@mmic-bjohnson
Jan 15 2016 15:38
No worries... thanks fortaking a look. My understanding is that ~1.0 certaintly includes v1.0.0.
It almost looks like Composer thinks that the same requirement has been defined twice.
Like, why the last line, that refers to mmic-themes/frontend-intranet == 9999999-dev -> satisfiable by ...?
I checked and I definitely don't have the same line in there twice for this package.
(and it works fine if I change ~1.0 to dev-master)
Ben Johnson
@mmic-bjohnson
Jan 15 2016 21:45
Figured it out... operator error. :D