wsldl
wsldl copied to clipboard
zstd support
Zstandard is a loseless compression algorithm, and dual-licensed under BSD OR GPLv2.
WSL supports importing quite a few formats already like .tar.
, .tar.xz
, .tar.gz
and .tar.zst
.
I'm aware of https://github.com/yuk7/wsldl/issues/109 and agree with the size increase worry. Regarding implementation, do you mean a go package for the compression algorithms or something else? If you mean packages, I think this or this would work.
To test if it's possible, I just blindly modified https://github.com/yuk7/wsldl/blob/3672589d073871b495efbd11614fa7554455ed7a/src/install/install.go#L20-L22 and gladly importing .tar.zst
just works. A more thorough support would require importing the package and change https://github.com/yuk7/wsldl/blob/3672589d073871b495efbd11614fa7554455ed7a/src/install/install.go#L106-L124 or wherever I'm unaware of.
A test build of wsldl is available here and I successfully built DevuanWSL based on that. Running Devuan.exe
does register the instance and it works flawlessly as far as I can tell so it should be feasible I guess.