karalabe / ssz

Opinionated 0-alloc SSZ codec for Go
https://github.com/ethereum/consensus-specs/blob/dev/ssz/simple-serialize.md
BSD 3-Clause "New" or "Revised" License
39 stars 7 forks source link

Unit tests failing #14

Open PyAgni opened 3 months ago

PyAgni commented 3 months ago

I cloned the repo locally for working on https://github.com/karalabe/ssz/issues/12, and tried running go test ./tests at the root directory, but it looks like unit tests for TestConsensusSpecBasics are all failing with the same error.

Reference: image

line 1: cannot unmarshal !!str `version...` into struct { Root string "yaml:\"root\"" }

image

karalabe commented 3 months ago

There's an open PR that's almost done https://github.com/karalabe/ssz/pull/15, so no need to do the work again :)

That said, the error I think is due to the submodule checkout requiring git LFS enabled to download the files from the test repo.

karalabe commented 3 months ago

I should probably look into that and make a note of it in the README os somewhere about exactly how it should be configured. (I just have it globally enabled for various repos so it "just works" for me).