-
Notifications
You must be signed in to change notification settings - Fork 45
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
Support for limits on memfs
?
#64
Comments
Hey @evankanderson, thanks for creating your first issue. Here's a discussion around the topic of limiting storage. Overall, I am not opposed to having this capability, we just need to ensure the user experience is solid. The question is what precisely are we going to limit and how are we going to enforce it? I am happy to review a PR on this if you are keen to propose one. |
I'm willing to look at a filter option for go-git as well, but I'll see about sending a PR to add upper bounds on total file size and total number of files to memfs. Is it expected that memfs is thread-safe? (I'm assuming not given current code) |
It isn't at the moment, and is one of the causes of |
@evankanderson please note that the filter option is now implemented and available from go-git@main. |
Ooh, nifty! Thank you! |
We're using
memfs
alongsidego-git
to perform a shallow clone of Git repositories. We'd like to be able to limit the data written to thememfs
(other than heap memory / crashing).Would additions to the memfs interface to support limiting the filesystem contents be of interest / accepted?
The text was updated successfully, but these errors were encountered: