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
Investigate include/exclude oddities #175
Conversation
…18n-command into try/172-exclude-include
I looked into the tests, and for the failing test, the function to extract the files returns an empty array. I'll take a closer look at the code now. |
From what I can see on my system, this change does nothing, the strings that get passed into that method never contain a leading slash for the tests you are doing... |
@swissspidy Can you take a look at the code change I made to validate? What I found is that the logic that was in place include directories that had files that might match ... but excluded the actual files that would have matched. |
Okay, it's obviously not enough to have the unit tests pass... |
I updated my wp-cli and wp cli i18n. Sadly if i recreate this scenario i still only get the translations from the test.php and not the vendor/test.php. |
@BartvanS What command are you running? |
wp i18n make-pot ./ ./test.pot --ignore-domain --include=/vendor/test.php |
@BartvanS Do you maybe have the |
Investigate include/exclude oddities
I've tried replicating #172 with the similar setup:
I ran:
And the
vendor/test.php
file was not included as expected.Then I added 763941a and the file was now included as expected.
However, I failed at verifying this with a PHPUnit test.