Skip to content

Commit d2a5fed

Browse files
authored
Merge pull request #322 from wp-cli/fix/deep-copy-error
2 parents feb6668 + 3217430 commit d2a5fed

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

.github/workflows/deployment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
${{ runner.os }}-composer-
3939
4040
- name: Install dependencies
41-
run: composer install --no-dev --no-progress --no-interaction --optimize-autoloader
41+
run: composer install --no-dev --no-progress --no-interaction
4242

4343
- name: Store WP-CLI version
4444
run: |
@@ -59,7 +59,7 @@ jobs:
5959
path: cli_version.txt
6060

6161
- name: Build the Phar file
62-
run: php -dphar.readonly=0 utils/make-phar.php wp-cli.phar --quiet --version=$CLI_VERSION
62+
run: php -dphar.readonly=0 utils/make-phar.php wp-cli.phar --version=$CLI_VERSION
6363

6464
- name: Upload built Phar file
6565
uses: actions/upload-artifact@v2

utils/make-phar.php

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,30 @@ function add_file( $phar, $path ) {
6565
if ( 'cli' === BUILD ) {
6666
$strips = [
6767
'\/(?:behat|composer|gherkin)\/src\/',
68+
'\/behat\/',
6869
'\/phpunit\/',
70+
'\/phpspec\/',
71+
'\/sebastian\/',
72+
'\/php-parallel-lint\/',
6973
'\/nb\/oxymel\/',
7074
'-command\/src\/',
7175
'\/wp-cli\/[^\n]+?-command\/',
7276
'\/symfony\/(?:config|console|debug|dependency-injection|event-dispatcher|filesystem|translation|yaml)\'',
73-
'\/(?:dealerdirect|squizlabs|wimg)\/',
77+
'\/(?:dealerdirect|myclabs|squizlabs|wimg)\/',
7478
'\/yoast\/',
7579
];
7680
} else {
7781
$strips = [
7882
'\/(?:behat|gherkin)\/src\/',
83+
'\/behat\/',
7984
'\/phpunit\/',
85+
'\/phpspec\/',
86+
'\/sebastian\/',
87+
'\/php-parallel-lint\/',
8088
'\/symfony\/(?:config|debug|dependency-injection|event-dispatcher|translation|yaml)\'',
8189
'\/composer\/spdx-licenses\/',
8290
'\/Composer\/(?:Command\/|Compiler\.php|Console\/|Downloader\/Pear|Installer\/Pear|Question\/|Repository\/Pear|SelfUpdate\/)',
83-
'\/(?:dealerdirect|squizlabs|wimg)\/',
91+
'\/(?:dealerdirect|myclabs|squizlabs|wimg)\/',
8492
'\/yoast\/',
8593
];
8694
}
@@ -186,12 +194,12 @@ function get_composer_versions( $current_version ) {
186194
->in( WP_CLI_VENDOR_DIR . '/symfony' )
187195
->notName( 'behat-tags.php' )
188196
->notPath( '#(?:[^/]+-command|php-cli-tools)/vendor/#' ) // For running locally, in case have composer installed or symlinked them.
189-
->exclude( 'symfony/config' )
190-
->exclude( 'symfony/debug' )
191-
->exclude( 'symfony/dependency-injection' )
192-
->exclude( 'symfony/event-dispatcher' )
193-
->exclude( 'symfony/translation' )
194-
->exclude( 'symfony/yaml' )
197+
->exclude( 'config' )
198+
->exclude( 'debug' )
199+
->exclude( 'dependency-injection' )
200+
->exclude( 'event-dispatcher' )
201+
->exclude( 'translation' )
202+
->exclude( 'yaml' )
195203
->exclude( 'examples' )
196204
->exclude( 'features' )
197205
->exclude( 'test' )

0 commit comments

Comments
 (0)