You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you don't provide a valid alias (e.g. "server" for "symfony/web-server-bundle") or Symfony package name (e.g. "monolog-bundle" for "symfony/monolog-bundle") or a Composer package name (e.g. "fabpot/flex"), you see this error:
$ composer req sec
[InvalidArgumentException]
Could not find package sec at any version for your minimum-stability (dev).
Check the package spelling or your minimum-stability
This is what I expected:
$ composer req sec
[InvalidArgumentException]
Could not find package "sec". Did you mean: "security" or "security-checker"?
In practice:
This would only work when the user input doesn't contain a "/". Otherwise they are trying to install a Composer package and we should not fix them (e.g. "sec" -> did you mean "security"? but "foo/sec" -> Composer error)
This would only show the 2 or 3 best alternatives.
If we don't want to easily disclose the available aliases, this would only work if the user typed at least 3 chars (to avoid typing "a" to get those aliases, then "b", etc.)
The text was updated successfully, but these errors were encountered:
It's not easy as the argument might be a package name or a version like in composer req twig 2.3. Here 2.3 is the version for Twig, not another package. Will see what I can do though.
If you don't provide a valid alias (e.g. "server" for "symfony/web-server-bundle") or Symfony package name (e.g. "monolog-bundle" for "symfony/monolog-bundle") or a Composer package name (e.g. "fabpot/flex"), you see this error:
This is what I expected:
In practice:
The text was updated successfully, but these errors were encountered: