https://github.com/albinodrought/repro-composer-22-issue
Root composer.json requires dev-master, found [dev-main] but it does not match the constraint. Perhaps dev-master was renamed to dev-main?
https://github.com/albinodrought/repro-composer-22-issue
Last synced: about 2 months ago
JSON representation
Root composer.json requires dev-master, found [dev-main] but it does not match the constraint. Perhaps dev-master was renamed to dev-main?
- Host: GitHub
- URL: https://github.com/albinodrought/repro-composer-22-issue
- Owner: AlbinoDrought
- Created: 2022-03-21T18:41:13.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-21T18:53:18.000Z (about 3 years ago)
- Last Synced: 2025-02-07T02:46:34.801Z (3 months ago)
- Language: Shell
- Homepage: https://github.com/composer/composer/issues/10651
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Composer 2.2 Issue
Problem 1
- Root composer.json requires example/sample-dep dev-master, found example/sample-dep[dev-main] but it does not match the constraint. Perhaps dev-master was renamed to dev-main?
Problem 2
- Root composer.json requires example/sample-other-dep dev-master, found example/sample-other-dep[dev-main] but it does not match the constraint. Perhaps dev-master was renamed to dev-main?To reproduce:
- Have a local requirement targetting `dev-master`
- Have some other requirement, maybe also a dependant of the above
- Upgrade that other requirementIf you have Docker, run `./reproduce.sh` in this repo, or:
```sh
#!/bin/sh
set -x
set -e
docker run --rm -v $PWD:/app -w /app composer:2.1 composer require --dev phpunit/phpunit:^9
docker run --rm -v $PWD:/app -w /app composer:2.2 composer require --dev phpunit/phpunit:^9
```