[ci] [R-package] use --no-xattrs when re-tarring CRAN-style package (#6540)

This commit is contained in:
James Lamb 2024-07-14 09:52:10 -07:00 коммит произвёл GitHub
Родитель 830763d9e5
Коммит 3d386be29b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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