Skip to content

chore: refine update strategy to exclude 'path' dist types from merge…#18

Merged
roble merged 1 commit into
mainfrom
dev
Jun 7, 2026
Merged

chore: refine update strategy to exclude 'path' dist types from merge…#18
roble merged 1 commit into
mainfrom
dev

Conversation

@roble

@roble roble commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

… stashing

Copilot AI review requested due to automatic review settings June 7, 2026 16:16
@roble roble merged commit 99a3fd3 into main Jun 7, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refines the module update flow to avoid using the merge update strategy when the currently installed package ($initial) has a Composer dist type of 'path', falling back to the overwrite-style stashing path instead.

Changes:

  • Prevents merge-mode stashing/base preparation when $initial->getDistType() === 'path'.
  • Adds inline rationale explaining why path dist types shouldn’t use a merge base in this update flow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Installer.php
$basePath = null;

if ($this->getUpdateStrategy() === self::UPDATE_STRATEGY_MERGE) {
if ($this->getUpdateStrategy() === self::UPDATE_STRATEGY_MERGE && $initial->getDistType() !== 'path') {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants