Skip to content

Commit 8d46738

Browse files
Copilotswissspidy
andcommitted
Fix missing composer_type_package assignment causing empty repository in addRepository call
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 3673151 commit 8d46738

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Package_Command.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,9 @@ public function install( $args, $assoc_args ) {
370370
|| self::PACKAGE_INDEX_URL !== $composer_backup_decoded['repositories']['wp-cli']['url']
371371
|| ( $composer_backup_decoded['repositories']['wp-cli']['canonical'] ?? true ) !== false ) {
372372
WP_CLI::log( 'Updating package index repository url...' );
373-
WP_CLI::log( 'Refreshing package index repository definition...' );
374373
$json_manipulator->addRepository(
375374
'wp-cli',
376-
$package_args
375+
$this->composer_type_package
377376
);
378377
}
379378

0 commit comments

Comments
 (0)