Skip to content
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: add option to create blockstore that writes a plain CARv1 #288

Merged
merged 3 commits into from
Jan 21, 2022

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Jan 20, 2022

Use-case: I only want a CARv1 output but I want to use the blockstore interface. I don't want to have to extract the CARv1 output from a CARv2 afterward.

Is this a reasonable way to achieve this end?

It would mean that the car create ... CLI command could have a --version flag which only needs to pass this new option to the blockstore.

@rvagg rvagg requested review from masih and willscott January 20, 2022 21:17
Copy link
Member

@willscott willscott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

v2/blockstore/readwrite.go Outdated Show resolved Hide resolved
v2/blockstore/readwrite.go Outdated Show resolved Hide resolved
@mvdan mvdan merged commit 7e10f10 into master Jan 21, 2022
@mvdan mvdan deleted the rvagg/blockstore-carv1 branch January 21, 2022 09:14
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