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

Leaking file handles #3

Closed
ianlewis opened this issue Aug 19, 2023 · 1 comment · Fixed by #16
Closed

Leaking file handles #3

ianlewis opened this issue Aug 19, 2023 · 1 comment · Fixed by #16
Labels
bug Something isn't working
Milestone

Comments

@ianlewis
Copy link
Owner

ianlewis commented Aug 19, 2023

From the original bug: denormal#5

It seems this library is leaking file handles here, as I can't find the associated Close call to this os.Open:

https://github.com/denormal/go-gitignore/blob/master/gitignore.go#L146

This is especially problematic on windows where many file operations are blocked if the file is still open.

@ianlewis
Copy link
Owner Author

Tests on windows currently fail because of leaky file handles
https://github.com/ianlewis/go-gitignore/actions/runs/5908593135/job/16028223100

@ianlewis ianlewis modified the milestones: v1.0.0, v0.1.0 Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant