Skip to content

Conversation

@rvagg
Copy link
Member

@rvagg rvagg commented Mar 8, 2023

Continuing on from #42 and ipld/go-car#384, it was bugging me that I couldn't properly extract everything I could find in a partial unixfs CAR when it should be able to just skip over what's missing. It turns out that all that's needed is a bit of preemptive state updating on errors so that the user can decide whether to continue on NotFound errors—when they come back, Next() and Done() will have correct state.

See test case for wikipedia test data with a big sharded directory with lots of missing branches—both subshards and leaves.

@rvagg rvagg requested a review from willscott March 8, 2023 03:51
rvagg added a commit to ipld/go-car that referenced this pull request Mar 8, 2023
allows non-path "full" extraction of a unixfs CAR that doesn't have complete
data

Ref: ipfs/go-unixfsnode#44
@rvagg rvagg merged commit ca00f89 into main Mar 9, 2023
@rvagg rvagg deleted the rvagg/graceful-not-found-errors branch March 9, 2023 03:27
rvagg added a commit to ipld/go-car that referenced this pull request Mar 13, 2023
allows non-path "full" extraction of a unixfs CAR that doesn't have complete
data

Ref: ipfs/go-unixfsnode#44
rvagg added a commit to ipld/go-car that referenced this pull request Mar 14, 2023
allows non-path "full" extraction of a unixfs CAR that doesn't have complete
data

Ref: ipfs/go-unixfsnode#44
Jorropo pushed a commit to ipfs/boxo that referenced this pull request Mar 22, 2023
allows non-path "full" extraction of a unixfs CAR that doesn't have complete
data

Ref: ipfs/go-unixfsnode#44


This commit was moved from ipld/go-car@22c855b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants