fxpio / composer-asset-plugin

NPM/Bower Dependency Manager for Composer
MIT License
893 stars 156 forks source link

Can not install bower-asset: angular-filemanager #211

Closed schmunk42 closed 8 years ago

schmunk42 commented 8 years ago

I tried to run:

composer require bower-asset/angular-filemanager

And got this error:

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

  Problem 1
    - The requested package bower-asset/angular-filemanager ^1.5 is satisfiable by bower-asset/angular-filemanager[1.5.0] but those are rejected by your minimum-stability.

Installation failed, reverting ./composer.json to its original content.

The latest version here is 1.4.8. That's basically the first error, it should not choose the non-existing constraint ^1.5

So I tried:

composer require bower-asset/angular-filemanager:^1.4.8
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for bower-asset/angular-filemanager ^1.4.8 -> satisfiable by bower-asset/angular-filemanager[1.4.8].
    - bower-asset/angular-filemanager 1.4.8 requires bower-asset/bootswatch 3.3.6-patch1 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

What's required is actually bootswatch version 3.3.6+1, see https://github.com/joni2back/angular-filemanager/blob/master/bower.json#L26

Versions

Composer version 1.0-dev (40c14709f79f9d7ea35ac969cfbd7f41beb525bb) 2016-04-05 12:27:16
fxp/composer-asset-plugin         v1.1.3  NPM/Bower Dependency Manager for Composer
schmunk42 commented 8 years ago

Addon, I tried also

"bower-asset/bootswatch": "dev-master#v3.3.6+1"

and composer update but this installs: 4f96596 from 2012(?!) https://github.com/thomaspark/bootswatch/commit/4f96596

francoispluchino commented 8 years ago

@schmunk42 If you have a fix, thanks in advance. It is in the class SemverConverter that goes.

francoispluchino commented 8 years ago

I thinks that it is the same bug of this issue #172.

francoispluchino commented 8 years ago

Fixed by 7f3338b433ca21ae8e8f56d4b5a82f0146242dce.