composer: Missing Support for Stability Flags in 'require' Command
$ composer.phar require "vierbergenlars/php-semver": "dev-master@dev"
[InvalidArgumentException]
Could not find package dev-master@dev at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability
It would appear stability flags @dev, @stable, etc. is not supported with the require command. When I manually add the line with stability flags to composer.json and then run composer.phar update
it updates as expected applying the stability flags.
I believe it would be good to have consistent behavior with the stability flags across both the require
command and the update
command.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 20 (4 by maintainers)
Commits related to this issue
- Updating/installing via 'require' is broken. Needs a new tagged version of symfony-console-completion. This Composer issue is the problem: https://github.com/composer/composer/issues/3367 — committed to platformsh/legacy-cli by pjcdawkins 10 years ago
- Make package name and version copy/paste-friendly Tries to alleviate some problems with users copying the full package name and version and pasting it into the "require" command, which doesn't suppor... — committed to nevvermind/packagist by nevvermind 9 years ago
composer require vendor/package=dev-master
Looks like invalid report.
You should remove the space between package name (after colon) and version. Right: composer require “doctrine/orm”:“2.5.@dev" Wrong: composer require “doctrine/orm”: "2.5.@dev”
Same problem: composer require “doctrine/orm”: “2.5.*@dev” gives me : [InvalidArgumentException]
Could not find package 2.5 at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability