Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow operation without .distignore file #55

Merged
merged 2 commits into from Jun 30, 2022

Conversation

BrianHenryIE
Copy link
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
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
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
Member

Looks like a reasonable change 👍

@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants