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

fix infinite compression if output file is inside the input folder #288

Merged
merged 2 commits into from
Oct 15, 2022

Conversation

figsoda
Copy link
Member

@figsoda figsoda commented Oct 14, 2022

fixes #287
fixes #292

moved the deduplication to when we are building the archive instead of before, so we don't have to iterate over the files, but that also means the progress bar is on, which makes it a little harder to print out the warning

using same-file crate since it is already used in ignore and deals with relative paths

@figsoda figsoda marked this pull request as draft October 14, 2022 00:53
@figsoda figsoda force-pushed the recursive-compression branch from afe8b6a to 2489d13 Compare October 14, 2022 01:05
@figsoda figsoda requested a review from marcospb19 October 14, 2022 01:05
@figsoda figsoda marked this pull request as ready for review October 14, 2022 01:05
@marcospb19 marcospb19 linked an issue Oct 15, 2022 that may be closed by this pull request
Copy link
Member

@marcospb19 marcospb19 left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Member

@marcospb19 marcospb19 left a comment

Choose a reason for hiding this comment

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

oops, lgtm!

@marcospb19 marcospb19 merged commit c128e07 into ouch-org:main Oct 15, 2022
@figsoda figsoda deleted the recursive-compression branch October 15, 2022 22:38
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

Successfully merging this pull request may close these issues.

Output of info logs is duplicated Infinite archive compression if output file is inside of the input folder
2 participants