Skip to content

Commit 6c2e67a

Browse files
committed
fix
1 parent 3e1fe8d commit 6c2e67a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Context/FeatureContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,10 +1866,10 @@ public function composer_add_wp_cli_local_repository(): void {
18661866
self::remove_dir( self::$composer_local_repository . '/vendor' );
18671867
}
18681868
if ( Utils\is_windows() ) {
1869-
$json_config = '{\"type\": \"path\", \"url\": \"' . str_replace( '\\', '/', $dest ) . '\", \"options\": {\"symlink\": false, \"versions\": { \"wp-cli/wp-cli\": \"dev-main\"}}}';
1869+
$json_config = '{\"type\": \"path\", \"url\": \"' . str_replace( '\\', '/', self::$composer_local_repository ) . '\", \"options\": {\"symlink\": false, \"versions\": { \"wp-cli/wp-cli\": \"dev-main\"}}}';
18701870
$this->composer_command( "config repositories.wp-cli \"$json_config\"" );
18711871
} else {
1872-
$this->composer_command( "config repositories.wp-cli '{\"type\": \"path\", \"url\": \"$dest\", \"options\": {\"symlink\": false, \"versions\": { \"wp-cli/wp-cli\": \"dev-main\"}}}'" );
1872+
$this->composer_command( "config repositories.wp-cli '{\"type\": \"path\", \"url\": \"" . self::$composer_local_repository . "\", \"options\": {\"symlink\": false, \"versions\": { \"wp-cli/wp-cli\": \"dev-main\"}}}'" );
18731873
}
18741874
$this->variables['COMPOSER_LOCAL_REPOSITORY'] = self::$composer_local_repository;
18751875
}

0 commit comments

Comments
 (0)