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

Tar: setIgnoreList causes empty archives #978

Closed
Jelle-S opened this issue Sep 8, 2020 · 2 comments
Closed

Tar: setIgnoreList causes empty archives #978

Jelle-S opened this issue Sep 8, 2020 · 2 comments

Comments

@Jelle-S
Copy link

Jelle-S commented Sep 8, 2020

Our builds started failing because the archive we create & upload to our environments were empty. After a lot of debugging I found that #964 caused the issue.

https://github.com/consolidation/Robo/pull/964/files#diff-b826726cd9ecd307766875aaa192e6c5R58 sets the ignoreList to an empty array. Then it calls the setIgnoreList method on the tar object: https://github.com/consolidation/Robo/pull/964/files#diff-b826726cd9ecd307766875aaa192e6c5R209

Which causes the ignore regexp to result in #/# in https://github.com/pear/Archive_Tar/blob/master/Archive/Tar.php#L732

This regexp matches all our files, resulting in empty archives :(

@greg-1-anderson
Copy link
Member

I wonder why the tests pass in this scenario? Do all tests have a non-empty ignore list now?

Please see if #979 fixes the issue for you. I'll make a quick release to fix without tests, but it would be good to have a test with an empty ignore list as a follow-on PR.

cc @obriat

@obriat
Copy link

obriat commented Sep 8, 2020

My bad, I didn't test this (obvious) case.
#979 seems fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants