From 09ad021cc776c198d3212efdc926e2fd31cf5d33 Mon Sep 17 00:00:00 2001 From: yuyawk <46620009+yuyawk@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:29:53 +0900 Subject: [PATCH] fix the problem in windows caused by symlinks (#82) --- .bazelignore | 2 +- .github/workflows/release_prep.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.bazelignore b/.bazelignore index 4ae507f..b8a84c1 100644 --- a/.bazelignore +++ b/.bazelignore @@ -1,2 +1,2 @@ -.cache +.cache/bazel examples diff --git a/.github/workflows/release_prep.sh b/.github/workflows/release_prep.sh index 8a71327..b646764 100755 --- a/.github/workflows/release_prep.sh +++ b/.github/workflows/release_prep.sh @@ -6,9 +6,8 @@ TAG="${GITHUB_REF_NAME}" PREFIX="rules_build_error-${TAG}" ARCHIVE="rules_build_error-${TAG}.tar.gz" -git archive --format=tar "--prefix=${PREFIX}/" "${TAG}" | \ - gzip \ - > "${ARCHIVE}" +git ls-files -z | \ + tar --transform "s|^|${PREFIX}/|" --null -czhf "${ARCHIVE}" --files-from=- # StdOut of this script is used for release description cat << EOF