-
-
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
feat: path consolidation #10063
feat: path consolidation #10063
Conversation
hacdias
commented
Aug 11, 2023
•
edited
Loading
edited
- feat(path)!: consolidated path libraries boxo#334
- Update Boxo commit before merging
5b19227
to
1542d6e
Compare
9e7a70e
to
edbed55
Compare
1b12387
to
ae2eb7e
Compare
ae2eb7e
to
48c1bcf
Compare
48c1bcf
to
25f873f
Compare
653cc94
to
25f873f
Compare
58fabe2
to
e5e1ae7
Compare
3ce9189
to
bf9a3a1
Compare
d9bca2c
to
8eb565d
Compare
6338df4
to
f5b4175
Compare
77ea675
to
4b18d58
Compare
f78a7ee
to
21d1144
Compare
ae8c8a1
to
b9ce207
Compare
297c4bb
to
9e7452e
Compare
9e7452e
to
8017256
Compare
@@ -62,13 +62,19 @@ func (s *Root) Lookup(ctx context.Context, name string) (fs.Node, error) { | |||
return nil, syscall.Errno(syscall.ENOENT) | |||
} | |||
|
|||
p, err := path.ParsePath(name) | |||
p, err := path.NewPath(name) |
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.
@hacdias I think this change might've broken fuse ipfs mount (ipns still works, I think):
2023-11-28T14:01:52.654+0100 DEBUG fuse/ipfs readonly/readonly_unix.go:67 fuse failed
to parse path: "QmREP1hYvkmdfHN3ybouWFaB7BenoinYRhWgcMwVWdutw4": invalid path "QmREP1hYvkmdfHN3ybo
uWFaB7BenoinYRhWgcMwVWdutw4": path does not have enough components
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.
It is broken beyond that though, adding /ipfs/
prefix results in:
2023-11-28T14:14:19.976+0100 DEBUG fuse/ipfs readonly/readonly_unix.go:58 Root Lookup: 'Qmde3RkqLihpS2ehi8VqUm6gZ9dCVGg4AvqGRcK5uvt78z'
2023-11-28T14:14:19.977+0100 ERROR fuse/ipfs readonly/readonly_unix.go:113 could not convert protobuf or raw node: expected protobuf dag node
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.
@crackcomm thanks for pinging. We are trying to take a look at it in #10243.