ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
16.18k stars 3.02k forks source link

ipfs resolve doesn't work with sharded dirs #3910

Closed Kubuxu closed 5 years ago

Kubuxu commented 7 years ago

Version information: 0.4.9-rc2

Type: Bug

Severity: Medium

Description:

Run ipfs resolve /ipfs/Qm...AAA/file where Qm...AAA is sharded.

whyrusleeping commented 7 years ago

Solution is likely to add a unixfs contextual resolver to the resolve command (though maybe we want that as an option?) see: https://github.com/ipfs/go-ipfs/blob/master/core/commands/ls.go#L93

whyrusleeping commented 7 years ago

@Stebalien has this been resolved?

Stebalien commented 7 years ago

@whyrusleeping no. I only fixed pinning. Test case:

ipfs resolve /ipfs/QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco/wiki/index.html

However, this is a deeper issue. We need to switch to using the unixfs resolver for all /ipfs paths and then add a /ipld prefix for resolving IPLD paths (https://github.com/ipfs/notes/issues/248).

Stebalien commented 5 years ago

Fixed in the CoreAPI refactor.