I vendored go modules for an ebuild as .tar.zst and to my surprise Portage cannot unpack these. Reproducible: Always
Created attachment 874234 [details, diff] Unpack zstd files I mostly plagarised the existing xz unpacking but had to alter the __unpack_tar function to resolve symlinks because for some reason this fails with an error that tar doesn't recognise the zstd format if I don't do this.
You want to use unpacker.eclass if you really need zstd compression.
Comment on attachment 874234 [details, diff] Unpack zstd files This patch cannot be applied using git-am, so I am marking it as obsolete.
Support for new formats in unpack should be requested via a PMS update.
For this to land in PMS, large enough number of packages must actually need it. Right now, I see two packages using '.zst' in ::gentoo, and none in ::guru. In other words, zstd as a compressor used for file distribution is nowhere near popular right now.