Skip to content

Commit 979a9f6

Browse files
committed
Set owner and group during tar to zero
Otherwise you get IDs that can cause (benign) errors while extracting, which might be confusing. At the very least, I did not see these errors from previous tars (although they seem to use 1001). There is no guarantee what IDs might exist so 0 seems the most reasonable.
1 parent b3455b4 commit 979a9f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/build/build-packages.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ main() {
2727
release_archive() {
2828
local release_name="code-server-$VERSION-$OS-$ARCH"
2929
if [[ $OS == "linux" ]]; then
30-
tar -czf "release-packages/$release_name.tar.gz" --transform "s/^\.\/release-standalone/$release_name/" ./release-standalone
30+
tar -czf "release-packages/$release_name.tar.gz" --transform "s/^\.\/release-standalone/$release_name/" ./release-standalone --owner=0 --group=0
3131
else
3232
tar -czf "release-packages/$release_name.tar.gz" -s "/^release-standalone/$release_name/" release-standalone
3333
fi

0 commit comments

Comments
 (0)