yii2: jquery.inputmask dependency no longer available; installs failing

What steps will reproduce the problem?

composer global require "fxp/composer-asset-plugin" composer install

What is the expected result?

Packages to be installed

What do you get instead?

Failed to install

Additional info

Q A
Yii version 2.0.x
PHP version 7.1
Operating system Amazon Linux / OSX
[227.8MB/40.89s] Your requirements could not be resolved to an installable set of packages.
[227.8MB/40.89s] 
  Problem 1
    - yiisoft/yii2 2.0.9 requires bower-asset/jquery.inputmask ~3.2.2 -> no matching package found.
    - yiisoft/yii2 2.0.8 requires bower-asset/jquery.inputmask ~3.2.2 -> no matching package found.
    - yiisoft/yii2 2.0.7 requires bower-asset/jquery.inputmask ~3.2.2 -> no matching package found.
    - yiisoft/yii2 2.0.6 requires bower-asset/jquery.inputmask 3.1.* -> no matching package found.
    - yiisoft/yii2 2.0.12 requires bower-asset/jquery.inputmask ~3.2.2 | ~3.3.5 -> no matching package found.
    - yiisoft/yii2 2.0.11.2 requires bower-asset/jquery.inputmask ~3.2.2 | ~3.3.3 -> no matching package found.
    - yiisoft/yii2 2.0.11.1 requires bower-asset/jquery.inputmask ~3.2.2 | ~3.3.3 -> no matching package found.
    - yiisoft/yii2 2.0.11 requires bower-asset/jquery.inputmask ~3.2.2 | ~3.3.3 -> no matching package found.
    - yiisoft/yii2 2.0.10 requires bower-asset/jquery.inputmask ~3.2.2 -> no matching package found.
    - Installation request for yiisoft/yii2 ^2.0.6 -> satisfiable by yiisoft/yii2[2.0.10, 2.0.11, 2.0.11.1, 2.0.11.2, 2.0.12, 2.0.6, 2.0.7, 2.0.8, 2.0.9].

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.
[148.4MB/40.93s] Memory usage: 148.38MB (peak: 227.89MB), time: 40.93s
bash-4.2# 

See https://github.com/RobinHerbots/jquery.inputmask/issues/2 the inputmask library is not longer available. From what I can tell it ‘was’ working due to github aliasing the package. Now the alias is released composer is failing to install.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 20
  • Comments: 27 (17 by maintainers)

Commits related to this issue

Most upvoted comments

One possible workaround that I’ve come up with is overriding the jquery.inputmask repository via fxp configuration in composer.json. It might be working. Still haven’t tested it, though.

    "config": {
        "fxp-asset": {
            "repositories": {
                "bower-asset/jquery.inputmask": {
                    "type": "bower-github",
                    "url": "https://github.com/petrabarus/jquery.inputmask"
                }
            }
        }
    }

Would love to know if anyone has found a workaround solution regarding this.