actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.36k stars 1.16k forks source link

zstdmt does not exist #1379

Closed andymcblane closed 2 months ago

andymcblane commented 2 months ago

Hi, I'm using actions/cache@v4 on Ubuntu 20.04 as a self-managed runner.

zstd --version -> *** zstd command line interface 64-bits v1.5.0, by Yann Collet ***

zstd --long -> (�/�$

It appears as though the code is assuming that zstdmt is installed.

/usr/bin/tar --posix -cf cache.tzst --exclude cache.tzst -P -C /home/runner8/runner/_work/ourrepo/ourrepo --files-from manifest.txt --use-compress-program zstdmt
/bin/sh: 1: zstdmt: not found
/usr/bin/tar: cache.tzst: Wrote only 4096 of 10240 bytes
/usr/bin/tar: Child returned status 127
/usr/bin/tar: Error is not recoverable: exiting now
Warning: Failed to save: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2

I was browsing the code at https://github.com/actions/toolkit however if this is not correct please advise. I can get more details from the self-hosted runner if needed - thanks!

andymcblane commented 2 months ago

https://github.com/actions/toolkit/issues/1726