tar archive error #434

Open
opened 2023-12-02 02:49:53 +00:00 by pinghe · 1 comment
pinghe commented 2023-12-02 02:49:53 +00:00 (Migrated from gitea.com)

container image is mgoltzsche/podman:latest. os is alpine

[testapp Nightly CI/build] | [command]/bin/tar --posix -z -cf cache.tgz --exclude cache.tgz -P -C /workspace/***/testapp --files-from manifest.txt
[testapp Nightly CI/build] | /bin/tar: unrecognized option: posix
[testapp Nightly CI/build] | BusyBox v1.36.1 (2023-10-09 08:04:29 UTC) multi-call binary.
[testapp Nightly CI/build] |
[testapp Nightly CI/build] | Usage: tar c|x|t [-ZzJjahmvokO] [-f TARFILE] [-C DIR] [-T FILE] [-X FILE] [LONGOPT]... [FILE]...
[testapp Nightly CI/build] |
[testapp Nightly CI/build] | Create, extract, or list files from a tar file
[testapp Nightly CI/build] |
[testapp Nightly CI/build] | c Create
[testapp Nightly CI/build] | x Extract
[testapp Nightly CI/build] | t List
[testapp Nightly CI/build] | -f FILE Name of TARFILE ('-' for stdin/out)
[testapp Nightly CI/build] | -C DIR Change to DIR before operation
[testapp Nightly CI/build] | -v Verbose
[testapp Nightly CI/build] | -O Extract to stdout
[testapp Nightly CI/build] | -m Don't restore mtime
[testapp Nightly CI/build] | -o Don't restore user:group
[testapp Nightly CI/build] | -k Don't replace existing files
[testapp Nightly CI/build] | -Z (De)compress using compress
[testapp Nightly CI/build] | -z (De)compress using gzip
[testapp Nightly CI/build] | -J (De)compress using xz
[testapp Nightly CI/build] | -j (De)compress using bzip2
[testapp Nightly CI/build] | --lzma (De)compress using lzma
[testapp Nightly CI/build] | -a (De)compress based on extension
[testapp Nightly CI/build] | -h Follow symlinks
[testapp Nightly CI/build] | -T FILE File with names to include
[testapp Nightly CI/build] | -X FILE File with glob patterns to exclude
[testapp Nightly CI/build] | --exclude PATTERN Glob pattern to exclude
[testapp Nightly CI/build] | --overwrite Replace existing files
[testapp Nightly CI/build] | --strip-components NUM NUM of leading components to strip
[testapp Nightly CI/build] | --no-recursion Don't descend in directories
[testapp Nightly CI/build] | --numeric-owner Use numeric user:group
[testapp Nightly CI/build] | --no-same-permissions Don't restore access permissions
[testapp Nightly CI/build] 🚧 ::warning::Failed to save: Tar failed with error: The process '/bin/tar' failed with exit code 1

container image is `mgoltzsche/podman:latest`. os is alpine [testapp Nightly CI/build] | [command]/bin/tar --posix -z -cf cache.tgz --exclude cache.tgz -P -C /workspace/***/testapp --files-from manifest.txt [testapp Nightly CI/build] | /bin/tar: unrecognized option: posix [testapp Nightly CI/build] | BusyBox v1.36.1 (2023-10-09 08:04:29 UTC) multi-call binary. [testapp Nightly CI/build] | [testapp Nightly CI/build] | Usage: tar c|x|t [-ZzJjahmvokO] [-f TARFILE] [-C DIR] [-T FILE] [-X FILE] [LONGOPT]... [FILE]... [testapp Nightly CI/build] | [testapp Nightly CI/build] | Create, extract, or list files from a tar file [testapp Nightly CI/build] | [testapp Nightly CI/build] | c Create [testapp Nightly CI/build] | x Extract [testapp Nightly CI/build] | t List [testapp Nightly CI/build] | -f FILE Name of TARFILE ('-' for stdin/out) [testapp Nightly CI/build] | -C DIR Change to DIR before operation [testapp Nightly CI/build] | -v Verbose [testapp Nightly CI/build] | -O Extract to stdout [testapp Nightly CI/build] | -m Don't restore mtime [testapp Nightly CI/build] | -o Don't restore user:group [testapp Nightly CI/build] | -k Don't replace existing files [testapp Nightly CI/build] | -Z (De)compress using compress [testapp Nightly CI/build] | -z (De)compress using gzip [testapp Nightly CI/build] | -J (De)compress using xz [testapp Nightly CI/build] | -j (De)compress using bzip2 [testapp Nightly CI/build] | --lzma (De)compress using lzma [testapp Nightly CI/build] | -a (De)compress based on extension [testapp Nightly CI/build] | -h Follow symlinks [testapp Nightly CI/build] | -T FILE File with names to include [testapp Nightly CI/build] | -X FILE File with glob patterns to exclude [testapp Nightly CI/build] | --exclude PATTERN Glob pattern to exclude [testapp Nightly CI/build] | --overwrite Replace existing files [testapp Nightly CI/build] | --strip-components NUM NUM of leading components to strip [testapp Nightly CI/build] | --no-recursion Don't descend in directories [testapp Nightly CI/build] | --numeric-owner Use numeric user:group [testapp Nightly CI/build] | --no-same-permissions Don't restore access permissions [testapp Nightly CI/build] 🚧 ::warning::Failed to save: Tar failed with error: The process '/bin/tar' failed with exit code 1
lunny commented 2024-02-05 09:26:47 +00:00 (Migrated from gitea.com)

Looks like the tar command parameters are not compatible.

Looks like the `tar` command parameters are not compatible.
Sign in to join this conversation.