-
Notifications
You must be signed in to change notification settings - Fork 4
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
Outdated go-ipld-prime reference #22
Comments
this hamt library is currently used primarily within a lotus context. That larger ecosystem of code remains stuck on ipld-prime v0.7 until the merge of filecoin-project/lotus#6375 |
I thought that lotus project was based on |
This mainly adapts the codebase to use LinkSystem, a breaking change introduced in v0.9.0 back in March 2021. The public API needs to change a little bit too, accordingly. Links should be loaded and created just as before, and all tests continue passing with no changes. Just one other breaking change to note: the codecs no longer expose an "Encoder" func, as that's now "Encode". Fixes #22.
@eduardonunesp you're right that all production use cases should be on the non-primified go-hamt-ipld for now, though one of the main benefits of this ADL is Filecoin compatibility, so we still want to remain compatible. That said, you should be able to use the branch from #23 for the time being. Filecoin should upgrade its ipld-prime version over the next few weeks, at which point we'll be able to merge that PR. |
Thank you very much @mvdan and @willscott |
This mainly adapts the codebase to use LinkSystem, a breaking change introduced in v0.9.0 back in March 2021. The public API needs to change a little bit too, accordingly. Links should be loaded and created just as before, and all tests continue passing with no changes. Just one other breaking change to note: the codecs no longer expose an "Encoder" func, as that's now "Encode". Finally, re-generate code. Fixes #22.
This mainly adapts the codebase to use LinkSystem, a breaking change introduced in v0.9.0 back in March 2021. The public API needs to change a little bit too, accordingly. Links should be loaded and created just as before, and all tests continue passing with no changes. Just one other breaking change to note: the codecs no longer expose an "Encoder" func, as that's now "Encode". Finally, re-generate code. Fixes #22.
The reference to
go-ipld-prime
is outdated which is causing errors of compatibility with some components likeipld.LinkBuilder
,ipld.Loader
andipld.Storer
. Right now the version ofgo-ipld-prime
isv0.10.0
and this repo is using the versionv0.7.0
.Proof of concept
The text was updated successfully, but these errors were encountered: