diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-04 00:16:43 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-04 00:16:43 +0900 |
| commit | 5fc05048a456ce18fd9408ea985031865cf45550 (patch) | |
| tree | 9d01068a076f096874c188f0622f260920d94476 /crates/mozart-core | |
| parent | 16f8cf26db22c4fb1073b55d57d31110ea9773cc (diff) | |
| download | php-mozart-5fc05048a456ce18fd9408ea985031865cf45550.tar.gz php-mozart-5fc05048a456ce18fd9408ea985031865cf45550.tar.zst php-mozart-5fc05048a456ce18fd9408ea985031865cf45550.zip | |
fix(resolver): rewrite self.version on materialized root aliases
Mirror Composer's `AliasPackage::replaceSelfVersionDependencies`: a base
package's `replace` / `provide` / `conflict` link whose constraint
matches the base's own version (the resolved form of `self.version`) is
duplicated on the alias at the alias's version. A root require like
`a/aliased: dev-next as 4.1.0-RC2` paired with `replace: { foo:
self.version }` previously left the alias with a `dev-next` constraint,
so a transitive `foo ^4.0` requirement saw no numeric provider and the
solver bailed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart-core')
0 files changed, 0 insertions, 0 deletions
