fix: ensure tar supports Zstd - #569
Conversation
📝 WalkthroughWalkthrough
ChangesArchive capability selection
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryTightens Zstandard archive selection so the action uses
Confidence Score: 5/5The PR appears safe to merge, with the runtime bundle consistently implementing the intended Zstandard capability check. The new probe rejects runners lacking either the Zstandard executable or Important Files Changed
Reviews (1): Last reviewed commit: "fix: ensure `tar` supports Zstd" | Re-trigger Greptile |
--- ## [4.2.2](https://github.com/jdx/mise-action/compare/v4.2.1..v4.2.2) - 2026-07-24 ### 🐛 Bug Fixes - **(release-plz)** exit when git-cliff produces no version bump (#566) by [@jdx](https://github.com/jdx) in [#566](#566) - ensure `tar` supports Zstd (#569) by [@JackMyers001](https://github.com/JackMyers001) in [#569](#569) ### 📚 Documentation - update default value of `cache_key_prefix` (#570) by [@muzimuzhi](https://github.com/muzimuzhi) in [#570](#570) ### New Contributors * @muzimuzhi made their first contribution in [#570](#570) * @JackMyers001 made their first contribution in [#569](#569) <!-- generated by git-cliff --> <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Version and changelog-only release PR with no application logic changes in the diff. > > **Overview** > **Release v4.2.2** — bumps the package version from `4.2.1` to `4.2.2` in `package.json` and `package-lock.json`, and prepends a **4.2.2** section to `CHANGELOG.md` (git-cliff). > > That release documents fixes merged since 4.2.1: **release-plz** exits when git-cliff reports no version bump (#566), **tar** is validated for Zstd support before use (#569), and docs correct the default for `cache_key_prefix` (#570). This PR does not change action runtime code beyond the version metadata. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 5c0c95b. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: mise-en-dev <123107610+mise-en-dev@users.noreply.github.com>
Summary
tarinstalled supports ZstdRoot Cause
As noted in #568, the action previously selected a Zstd-compressed archive after checking only
zstd --version, but extracts the archive withtar --zstd. This fails on RHEL 8-compatible runners that shipzstd1.4.4 and GNUtar1.30, which does not recognize the--zstdoption.Fixes #568.
Validation
--zstdflag confirmed within a RHEL 8 VM +almalinux:8containerzstd --versionexits successfullytar --zstd --versionexits with an unrecognized-option error in this environment, but works with newertarversions (checked with1.35, but should be available from ~1.31)I was unable to run
mise run testor the pre-commit hook due tonpm installfailing; all passed after downgrading TypeScript to v6 (this appears to be unrelated to my change).Summary by CodeRabbit
.tar.zstsupport before use..tar.gzarchives when the system’starcommand cannot handle Zstandard compression.