• Masih H. Derkani's avatar
    Add zero-length sections as EOF option to internal CARv1 reader · 703b88c2
    Masih H. Derkani authored
    The CARv2 implementation uses an internal fork of CARv1 due to upstream
    dependency issues captured in #104. Propagate the options set in CARv2
    APIs for treatment of zero-lenth sections onto internal packages so that
    APIs using the internal CARv1 reader behave consistently. Use a `bool`
    for setting the option, since it is the only option needed in CARv1.
    
    Update tests to reflect changes.
    
    Add additional tests to internal CARv1 package and ReadOnly blockstore
    that assert option is propagated.
    
    Fixes #190
    703b88c2
readonly.go 10.7 KB