-
-
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
chore: update boxo to version with fewer globals #9907
Conversation
73e1ef4
to
cfa056d
Compare
@@ -27,6 +27,8 @@ func dagImport(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment | |||
return err | |||
} | |||
|
|||
blockDecoder := ipldlegacy.NewDecoder() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use a global here (i.e. the go-ipld-prime defaults) is pretty unfortunate and subtle. However, it should be ok.
Note: previously this decoder included the registration of the go-ipld-format Raw and Dag-Pb converters. However, IIUC that shouldn't be necessary in this function since the go-codec-dagpb codec and the built-in go-ipld-prime raw codec should be sufficient.
dbfb4e9
to
8e917b6
Compare
670d307
to
624267d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Meta boxo comment) It is sad to see a consumer go through breaking changes update for what is a code we want to kill.
624267d
to
4cde204
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sgtm
A couple notes:
|
…ers via go-ipld-legacy instead of go-ipld-format ones
4cde204
to
5fbe8c6
Compare
Validating ipfs/boxo#324 which collects the changes to resolve ipfs/boxo#291