go-car icon indicating copy to clipboard operation
go-car copied to clipboard

carv2.NewBlockReader cannot be used with a stream

Open willscott opened this issue 2 years ago • 1 comments

NewBlockReader takes an io.Reader, however when passed os.Stdin with a carv2 payload, the call to new will error with "seek /dev/stdin: illegal seek"

It's unclear how this is trying to seek on an io.Reader in the first place.

willscott avatar Jan 13 '22 10:01 willscott