Skip to content

Allow operation without .distignore file#55

Merged
schlessera merged 2 commits intowp-cli:mainfrom
BrianHenryIE:no-distignore-file
Jun 30, 2022
Merged

Allow operation without .distignore file#55
schlessera merged 2 commits intowp-cli:mainfrom
BrianHenryIE:no-distignore-file

Conversation

@BrianHenryIE
Copy link
Copy Markdown
Member

Continue execution where there is no .distignore present.
Warn users all files will be included.

No .distignore file found. All files in directory included in archive.

My general use has been a plugin wholly contained in a project sub-directory (#42, #45) so has no need for a .distignore.

Continue execution without a .distignore, and warn users all files will be included.
@BrianHenryIE BrianHenryIE requested a review from a team as a code owner May 20, 2022 02:15
Scenario: Warns but continues when no distignore file is present
Given an empty directory
And a test-plugin.php file:
"""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that you're mixing spaces with tabs here multiple times

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, looks like it's spaces I should be using. I'd run phpcbf but hasn't considered the test.

@swissspidy
Copy link
Copy Markdown
Member

Looks like a reasonable change 👍

@schlessera schlessera added enhancement command:dist-archive Related to 'dist-archive' command labels Jun 30, 2022
@schlessera schlessera added this to the 2.1.0 milestone Jun 30, 2022
@schlessera schlessera merged commit 2d265e4 into wp-cli:main Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:dist-archive Related to 'dist-archive' command enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants