Addresses an erroneous change in behaviour introduced in v2.12.0 whereby the BlockMetadata returned by BlockReader#SkipNext() records Offset for the block bytes rather than the CAR section byte offset. This release restores the original behaviour for CARv1 data and also includes the fix in v2.12.0 that brings CARv2 parsing behaviour into parity with CARv1 behaviour.
fix: BlockMetadata#Offset should be for section, not block data by @rvagg in ipld/go-car#497
Added new github.com/ipld/go-car/v2/storage/deferred package with DeferredCarWriter. Useful for cases where streaming a CAR that you don't want to begin until you know you've got data to write but need to set up a WritableStorage early.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/ipld/go-car/v2 from 2.11.0 to 2.13.1.
Release notes
Sourced from github.com/ipld/go-car/v2's releases.
Commits
86d6af2
fix: BlockMetadata#Offset should be for section, not block data5b2e696
chore(deps): bump actions/checkout from 3 to 47b8decb
fix: add closed check, expose storage.ErrClosede9e60af
fix: switch constructor args to match storage.New*, make roots plural7319768
feat: add DeferredCarWriter09d23db
feat: fix BlockReader#SkipNext & add SourceOffset property72edbd2
chore(deps): bump github.com/ipfs/go-unixfsnode in /v24d830ae
chore(deps): bump github.com/ipfs/go-block-format from 0.1.2 to 0.2.03dda1d3
chore(deps): bump github.com/ipfs/go-ipld-format in /v2ccd4b95
chore(deps): bump github.com/ipfs/go-ipld-format from 0.5.0 to 0.6.0Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show