Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions/cache assumes zstdmt to be installed #1726

Open
andymcblane opened this issue Apr 26, 2024 · 1 comment
Open

actions/cache assumes zstdmt to be installed #1726

andymcblane opened this issue Apr 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@andymcblane
Copy link

Describe the bug
actions/cache assumes zstdmt is installed without checking.

: ['--use-compress-program', IS_WINDOWS ? '"zstd -T0"' : 'zstdmt']

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 -> (�/�$

/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
@andymcblane andymcblane added the bug Something isn't working label Apr 26, 2024
@andymcblane
Copy link
Author

andymcblane commented Apr 26, 2024

This occurs as getCompressionMethod() only returns CompressionMethod.Gzip or CompressionMethod.ZstdWithoutLong
If it was to return CompressionMethod.Zstd then it will run zstdmt --long=30 compared to zstdmt

Suggestion is to re-work getCompressionMethod() to be aware if zstdmt is installed or not.

These above assumptions were incorrect.

@andymcblane andymcblane changed the title zstdmt is assumed to be installed actions/cache assumes zstdmt to be installed Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant