File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -181,14 +181,16 @@ private static function get_vendor_dir() {
181181 }
182182
183183 $paths = [
184+ dirname( dirname( __DIR__ ) ) . '/vendor/bin/wp',
184185 dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) . '/bin/wp',
185186 dirname( dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) ) . '/bin/wp',
186- dirname( dirname( __DIR__ ) ) . '/vendor/bin/wp',
187187 ];
188188
189+ var_dump( $paths );
189190 foreach ( $paths as $path ) {
190191 if ( file_exists( $path ) && is_executable( $path ) ) {
191- $vendor_dir = (string) realpath( dirname( $path ) );
192+ $vendor_dir = (string) realpath( dirname( dirname( $path ) ) );
193+
192194 break;
193195 }
194196 }
@@ -632,10 +634,10 @@ public function build_phar( $version = 'same' ) {
632634
633635 // Test running against a package installed as a WP-CLI dependency
634636 // WP-CLI bundle installed as a project dependency
635- $make_phar_path = self::get_vendor_dir() . '/../ wp-cli/wp-cli-bundle/utils/make-phar.php';
637+ $make_phar_path = self::get_vendor_dir() . '/wp-cli/wp-cli-bundle/utils/make-phar.php';
636638 if ( ! file_exists( $make_phar_path ) ) {
637639 // Running against WP-CLI bundle proper
638- $make_phar_path = self::get_vendor_dir() . '/../../ utils/make-phar.php';
640+ $make_phar_path = self::get_vendor_dir() . '/../utils/make-phar.php';
639641 }
640642
641643 $this->proc(
You can’t perform that action at this time.
0 commit comments