-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[PoC] importer: UnixFS type Raw
is never used
#5120
Conversation
License: MIT Signed-off-by: Lucas Molas <schomatis@gmail.com>
As explained in #5106 (comment), the balanced builder is not using the |
@schomatis please see #4693 I think it is related, and had to add some special case code to avoid changing existing hashes of empty files. Any sort of refactoring will need careful testing to make sure we still do things in the same manor so that we don't change existing hashes. |
@schomatis Yeah, the lack of the usage of |
@whyrusleeping Could we change the trickle builder behavior (and hashes) to avoid using the |
nope, can't change hashes. |
@whyrusleeping Then we should write a clear documentation around the |
Yeah, more docs are good.
The current situation of not using Raw even though its there? Really just docs for now, and try to push work on unixfs v2 forward. |
Just to clarify, I think it's a bit more complex than that because we are actually using it: the trickle DAGs use that type for its leaves (although yes, it's a tiny fraction of the total, not sure who uses trickle) and the balanced builder insinuates it in its code but doesn't (that should be partly addressed in #5118). |
As far as I know, MFS currently uses trickle. And yeah, this all around sucks. |
@schomatis status? Can we close this? |
Yes, we can't fix this and it has been documented in the code. |
Do not merge.