Public Access
fix: prevent self-referencing composer dependency in enterprise package
ensureComposerEnterprise() now skips repos whose composer.json name matches 'mokoconsulting-tech/enterprise' to avoid the package requiring itself. Also removes the re-added self-reference from composer.json. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -769,6 +769,11 @@ HCL;
|
||||
return;
|
||||
}
|
||||
|
||||
// Don't add self-referencing dependency — skip if this IS the enterprise package
|
||||
if (($json['name'] ?? '') === 'mokoconsulting-tech/enterprise') {
|
||||
return;
|
||||
}
|
||||
|
||||
$expectedConstraint = 'dev-' . self::VERSION_BRANCH;
|
||||
|
||||
// Check if enterprise package is already required with correct constraint
|
||||
|
||||
Reference in New Issue
Block a user