diff --git a/composer.json b/composer.json index 56cec14..72eef53 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,6 @@ "ext-json": "*", "ext-zip": "*", "guzzlehttp/guzzle": "^7.8", - "mokoconsulting-tech/enterprise": "dev-version/04", "monolog/monolog": "^3.5", "php": ">=8.1", "phpseclib/phpseclib": "^3.0", diff --git a/lib/Enterprise/RepositorySynchronizer.php b/lib/Enterprise/RepositorySynchronizer.php index 4cff0c9..2ad70e1 100644 --- a/lib/Enterprise/RepositorySynchronizer.php +++ b/lib/Enterprise/RepositorySynchronizer.php @@ -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