aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-core/src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-03 12:15:02 +0900
committernsfisis <nsfisis@gmail.com>2026-05-03 12:15:02 +0900
commit7badb54195131da9c3561c351138c0ba083e38e4 (patch)
tree0498ab8c3bfcf90e01fcecf451a10ad3844514ff /crates/mozart-core/src
parentdffb6244ebb432477b83631d68584bbc7186dd94 (diff)
downloadphp-mozart-7badb54195131da9c3561c351138c0ba083e38e4.tar.gz
php-mozart-7badb54195131da9c3561c351138c0ba083e38e4.tar.zst
php-mozart-7badb54195131da9c3561c351138c0ba083e38e4.zip
fix(install): switch update trace to dist-ref mode when source refs match
Composer's UpdateOperation::format renders the from/to versions through DISPLAY_SOURCE_REF_IF_DEV first, but if both sides come out identical it re-renders in DISPLAY_SOURCE_REF (when source refs differ) or DISPLAY_DIST_REF (when only dist refs differ) so the trace doesn't show a useless `pkg (X => X)` line. Mozart skipped the switch and emitted the default form on both halves, so a same-version-different-dist-ref update showed up as `dev-master def000 => dev-master def000` instead of `dev-master def000 => dev-master`. Add format_update_pretty_versions to render the pair Composer's way and plumb the resolved to_full_pretty through PackageOperation::Update so the trace recorder uses it verbatim. Unblocks update_installed_reference and update_picks_up_change_of_vcs_type installer fixtures. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart-core/src')
0 files changed, 0 insertions, 0 deletions