-
Notifications
You must be signed in to change notification settings - Fork 24
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 for leading slashes in .distignore, and deal gracefully with symlinks #61
Conversation
Working for zip Not quite working for tar The tar command is correct and works when I run it on the command line, but the tests are failing to exclude the file properly.
Fails on main wp-cli@eba7d1c Passes with PR wp-cli#59
Working for zip Not quite working for tar The tar command is correct and works when I run it on the command line, but the tests are failing to exclude the file properly.
Co-authored-by: Alain Schlesser <[email protected]>
Co-authored-by: Alain Schlesser <[email protected]>
1. It seems `sys_get_temp_dir()` was being shared across multiple tests, so files already existed when subsequent tests were run. 2. Looks like the "no distignore file is present" test was failing after wp-cli#56 was merged.
…m/BrianHenryIE/dist-archive-command into anchor-distignore-entries-to-root
Dammit, tests working locally on MacOS and not on GitHub Actions! Syntax differences between |
Failing tests in GitHub Actions CI were trying to run it. https://wordpress.slack.com/archives/C02RP4T41/p1659554836197889
`tar`'s `--anchored` is not available on MacOS. On MacOS `tar`, to anchor, exclusions are written with `^` regex character.
I needed to use
|
Thanks @BrianHenryIE, appreciate your work on this. I'll review this at depth when I have some time in the near future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great me, @BrianHenryIE.
Thanks again for your effort on it, and your thorough tests. The tests pass for me locally on Mac.
This is tests and fixes for PRs #58 and #59.
The tests for 58 were relevant to those needed for 59.
The code in 59 fixed some of the issue in 58.
Closes #57 and #47.
PHPUnit tests are added to this repo for the first time and should be helpful for work that might be done on #15 and #44.