Add mach command for decompressing zst files on Windows
Categories
(Firefox Build System :: Mach Core, enhancement, P5)
Tracking
(Not tracked)
People
(Reporter: bugzilla, Unassigned)
References
Details
I don't really know whether this is the right component for this, but here's the problem:
- Download an artifact from taskcluster, such as full crashreporter symbols;
- Uh-oh! It's a .tar.zst file! But I'm running
mozilla-build
on Windows! - Since our
mach
environment already useszstandard
, it would sure be nice to be able to quickly decompress such a file from the command line.
Comment 1•4 years ago
|
||
Thanks for the report 👍
FWIW, this would also be solved by having a "real" Linux environment in which you can install the CLI tools you need.
Comment 2•4 years ago
|
||
Note we already have a script that does that: taskcluster/scripts/misc/zstdpy (with the -d flag), but it needs to be run manually with the global mach virtualenv (which using mach python
wouldn't use) in ~/.mozbuild/_virtualenvs/mach
Comment 3•3 years ago
|
||
True, there is a workaround. To make it more explicit for future viewers: ~/.mozbuild/_virtualenvs/mach/bin/python <topsrcdir>/taskcluster/scripts/misc/zstdpy -d <file>
should extract zst files on Windows.
Comment 4•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Mach Core' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 5•3 years ago
|
||
Recent enough versions of tar support zstd archives with tar --zstd
or tar -a
, if the zstd executable is present on the system. The switch to msys2 might the right occasion to install zstd in MozillaBuild.
Comment 6•3 years ago
|
||
Works for me 👍, will ship with MozillaBuild 4.0.
Description
•