Skip to content

Commit

Permalink
[ci] [R-package] use --no-xattrs when re-tarring CRAN-style package (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Jul 14, 2024
1 parent 830763d commit 3d386be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-cran-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,12 @@ if ${BUILD_VIGNETTES} ; then
rm -f ./lightgbm/src/utils/*.o

echo "re-tarring ${TARBALL_NAME}"
# --no-xattrs is the default in GNU tar but not some distributions of BSD tar.
# Enable it here to avoid errors on macOS.
# ref: https://stackoverflow.com/a/74373784/3986677
tar \
-cz \
--no-xattrs \
-f "${TARBALL_NAME}" \
lightgbm \
> /dev/null 2>&1
Expand Down

0 comments on commit 3d386be

Please sign in to comment.