Skip to content

Commit 4cb07f5

Browse files
jDramaixcopybara-github
authored andcommitted
Fix the git archive format to match the archive file suffix.
When bazel try to install the repo, it uses the file prefix to determine how to extract the archive. If the format of the archive is not correct, bazel will fail when installing the repo. PiperOrigin-RevId: 791662417
1 parent ff133b9 commit 4cb07f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release_prep.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repository=${GITHUB_REPOSITORY#*/}
1212
directory="${repository}-${tag#v}"
1313
archive="${repository}-${tag}.tar.gz"
1414

15-
git archive --format=tar --prefix=${directory}/ -o "${archive}" ${tag}
15+
git archive --format="tar.gz" --prefix=${directory}/ -o "${archive}" ${tag}
1616

1717
# Replace hyphens with underscores in the repository name to match our Bazel
1818
# module naming conventions.

0 commit comments

Comments
 (0)