alias-solver-problems2.test 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --TEST--
  2. Test the error output of solver problems with dev-master aliases.
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. { "name": "locked/pkg", "version": "dev-master", "require": {"locked/dependency": "1.0.0"} }
  10. ]
  11. }
  12. ],
  13. "require": {
  14. "locked/pkg": "*@dev"
  15. }
  16. }
  17. --LOCK--
  18. {
  19. "packages": [
  20. { "name": "locked/pkg", "version": "dev-master", "require": {"locked/dependency": "1.0.0"} },
  21. { "name": "locked/dependency", "version": "1.0.0" }
  22. ],
  23. "packages-dev": [],
  24. "aliases": [],
  25. "minimum-stability": "dev",
  26. "stability-flags": [],
  27. "prefer-stable": false,
  28. "prefer-lowest": false,
  29. "platform": [],
  30. "platform-dev": []
  31. }
  32. --RUN--
  33. update locked/dependency
  34. --EXPECT-EXIT-CODE--
  35. 2
  36. --EXPECT-OUTPUT--
  37. Loading composer repositories with package information
  38. Updating dependencies
  39. Your requirements could not be resolved to an installable set of packages.
  40. Problem 1
  41. - locked/pkg is locked to version dev-master and an update of this package was not requested.
  42. - locked/pkg dev-master requires locked/dependency 1.0.0 -> found locked/dependency[1.0.0] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  43. Problem 2
  44. - locked/pkg dev-master requires locked/dependency 1.0.0 -> found locked/dependency[1.0.0] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  45. - Root composer.json requires locked/pkg *@dev -> satisfiable by locked/pkg[dev-master].
  46. Use the option --with-all-dependencies to allow upgrades, downgrades and removals for packages currently locked to specific versions.
  47. --EXPECT--