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

Fixing deleting temporary files #304

Merged

Conversation

vincenzoAiello
Copy link
Contributor

This fixes deleting temporary files.

I have written again the compression of the files and folders without the using of external libraries.

This resolves the issue #277

@claudiodangelis
Copy link
Owner

Hello @vincenzoAiello , thanks for this! I'm reviewing it now,
Claudio

@claudiodangelis
Copy link
Owner

Hello, I might be missing something, but I don't understand how it fixes the issue with deleting temporary files.
Could you please provide some context?
Thanks!
C

@vincenzoAiello
Copy link
Contributor Author

vincenzoAiello commented Dec 6, 2023

Hello @claudiodangelis, the problem is in the "Create" and "Close" functions because the zip file isn't closed properly.
These are the original functions of the library:
1
2

The problem is that the zip file is opened but it is never closed. Only the writer is closed. So, when you try to delete the temporary zip file, it gives an error.
Infact if i modify the code in this way it works:
1 (2)
2 (2)
3

BR
Vincenzo

@claudiodangelis claudiodangelis merged commit 05a0d3c into claudiodangelis:release/0.11.0 Dec 8, 2023
claudiodangelis added a commit that referenced this pull request Dec 8, 2023
* chore(go-releaser): update version

* chore(goreleaser): update config

* fix(zip): delete temporary file after transferring it (#304)

* Fixing deleting temporary files

* style(util):

* chore(deps): go mod tidy

---------

Co-authored-by: Claudio d'Angelis <claudiodangelis@gmail.com>

---------

Co-authored-by: Vincenzo Aiello <vincenzoaiello300@gmail.com>
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.

2 participants