mirror of
https://github.com/vbatts/tar-split.git
synced 2024-12-21 04:46:30 +00:00
9a95e02602
This is a port of commits adding RawHeader() to go-1.11 archive/tar. In addition: * simplify the rawBytes.Write() code in readHeader() * ignore errors from rawBytes.Write(), as (at least for go-1.11) it never returns an error, only panics (if the buffer grew too large) Also, remove the internal/testenv from tar_tar.go to enable go test. As working symlink detection is non-trivial on Windows, just skip the test on that platform. In addition to `go test`, I did some minimal manual testing, and it seems this code creates tar-data.json.gz which is identical to the one made by the old version. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> |
||
---|---|---|
.. | ||
testdata | ||
common.go | ||
example_test.go | ||
format.go | ||
reader.go | ||
reader_test.go | ||
stat_actime1.go | ||
stat_actime2.go | ||
stat_unix.go | ||
strconv.go | ||
strconv_test.go | ||
tar_test.go | ||
writer.go | ||
writer_test.go |