From ba1ec22f5cf62d8732da86eee6974f079fe8d2fb Mon Sep 17 00:00:00 2001 From: Jeromy Date: Thu, 9 Aug 2018 23:22:06 -0700 Subject: [PATCH] gx publish 1.0.1 --- .gx/lastpubver | 2 +- car.go | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gx/lastpubver b/.gx/lastpubver index c6518a5..01443f1 100644 --- a/.gx/lastpubver +++ b/.gx/lastpubver @@ -1 +1 @@ -1.0.0: QmUe7hFx8ACivDWe1pF6X2ZTihGfeXppMc1aPjNBJ8cCHv +1.0.1: QmWkSGjYAhLbHFiq8bA73xA67EG3p6ERovd2ad8c7cmbxK diff --git a/car.go b/car.go index dfac121..3f1996a 100644 --- a/car.go +++ b/car.go @@ -117,6 +117,7 @@ func (cw *carWriter) writeNode(ctx context.Context, nd format.Node) error { hdr := &tar.Header{ Name: nd.Cid().String(), Typeflag: tar.TypeReg, + Size: int64(len(nd.RawData())), } if err := cw.tw.WriteHeader(hdr); err != nil { diff --git a/package.json b/package.json index 035e189..4c938e3 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,6 @@ "license": "", "name": "go-car", "releaseCmd": "git commit -a -m \"gx publish $VERSION\"", - "version": "1.0.0" + "version": "1.0.1" } -- GitLab