From a157f6e8e318cbb45d9b23549d1471615a4e7bb9 Mon Sep 17 00:00:00 2001 From: clickingbuttons Date: Fri, 4 Aug 2023 12:25:22 -0400 Subject: [PATCH] upgrade to zig 0.11.0 --- .github/workflows/publish_docs.yml | 4 ++-- .github/workflows/test.yml | 2 +- build.zig.zon | 10 +++++----- src/ipc/reader.zig | 2 +- testdata/sample_written.arrow | Bin 6070 -> 6070 bytes 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish_docs.yml b/.github/workflows/publish_docs.yml index e171a7b..a91fb33 100644 --- a/.github/workflows/publish_docs.yml +++ b/.github/workflows/publish_docs.yml @@ -27,8 +27,8 @@ jobs: uses: actions/configure-pages@v2 - uses: goto-bus-stop/setup-zig@v2 with: - version: 0.11.0-dev.3937+78eb3c561 - - run: zig build-lib src/lib.zig -femit-docs=docs + version: 0.11.0 + - run: zig build-lib src/lib.zig -femit-docs=docs -fno-emit-bin - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 59e7260..f67c750 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v3 - uses: goto-bus-stop/setup-zig@v2 with: - version: 0.11.0-dev.3937+78eb3c561 + version: 0.11.0 - run: zig build test - run: pip install pyarrow - run: zig build test-integration diff --git a/build.zig.zon b/build.zig.zon index 9a63ae7..046ddd1 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,15 +1,15 @@ .{ .name = "arrow-zig", - .version = "0.0.1", + .version = "0.0.2", .dependencies = .{ .@"flatbuffers-zig" = .{ - .url = "https://github.com/clickingbuttons/flatbuffers-zig/archive/0.0.1.tar.gz", - .hash = "12208d20385de50fd7f68519e2f485639df1b22e7dbe9417a774833fe5501744121a", + .url = "https://github.com/clickingbuttons/flatbuffers-zig/archive/0.0.2.tar.gz", + .hash = "12209f877dd1b9d95905f1de79f41249df344fbd2700510196978df4af94e0abb6f2" }, .lz4 = .{ - .url = "https://github.com/clickingbuttons/lz4/archive/refs/tags/0.0.3.tar.gz", - .hash = "12202bb31c32e2669ab9700627c5cc52e79b85b08397467d9a99637bff8cffd77a1b", + .url = "https://github.com/clickingbuttons/lz4/archive/refs/tags/0.0.4.tar.gz", + .hash = "12207e29fd690e26b57091f92181c5fe1cc88b9b908aecff98ca0773bdc45ec7decf", }, } } diff --git a/src/ipc/reader.zig b/src/ipc/reader.zig index 83f5971..ea4389b 100644 --- a/src/ipc/reader.zig +++ b/src/ipc/reader.zig @@ -226,7 +226,7 @@ pub fn Reader(comptime ReaderType: type) type { const n_read: usize = if (compression) |c| brk: { switch (c.codec) { .lz4__frame => { - var stream = lz4.decompressStream(self.arena.allocator(), self.source); + var stream = lz4.decompressStream(self.arena.allocator(), self.source, true); defer stream.deinit(); break :brk try stream.reader().readAll(res); }, diff --git a/testdata/sample_written.arrow b/testdata/sample_written.arrow index 5e04021d6dc1f789e39ee4dda4d073aa020c91b1..9c41e3bfeb885eaddc3520d8845ecb45d08c5a74 100644 GIT binary patch delta 14 Vcmdm{zfFIGgfQd0&62`%SpXEC44B1dadz