From 7b5d916a9a85f37c199bf765ef85625945469165 Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Fri, 14 Feb 2025 18:32:35 -0800 Subject: [PATCH] ci: set owner/group in tarball set owner and group when building the linux tarball so extracted files are consistent. this is the behaviour of release tarballs in version 0.5.7 and lower --- .github/workflows/release.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index acae0050d..37ac7e45e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -329,7 +329,9 @@ jobs: done working-directory: dist/${{ matrix.os }}-${{ matrix.arch }} - run: | - for ARCHIVE in dist/${{ matrix.os }}-${{ matrix.arch }}/*.tar.in; do tar c -C dist/${{ matrix.os }}-${{ matrix.arch }} -T $ARCHIVE | pigz -9vc >$(basename ${ARCHIVE//.*/}.tgz); done + for ARCHIVE in dist/${{ matrix.os }}-${{ matrix.arch }}/*.tar.in; do + tar c -C dist/${{ matrix.os }}-${{ matrix.arch }} -T $ARCHIVE --owner 0 --group 0 | pigz -9vc >$(basename ${ARCHIVE//.*/}.tgz); + done - uses: actions/upload-artifact@v4 with: name: dist-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.target }}