Open Techatrix opened 11 months ago
Here's another use case I discovered today. I'm adding a build.zig file to build VVVVVV, and it has a data.zip
you can download with free assets and levels. I added the data.zip
to build.zig.zon
, but the game actually needs the zip file, not the extracted contents. To solve this I "re-zip" the contents and install them to the bin directory for the game to load, however, if there was a way to instead download the zip file as just a "file", this would remove some unnecessary steps.
This seems like it would be fully solved with .unpack = false,
yeah?
ZLS depends on Zig's langref.html.in file to extract the set of a builtin function. Right now, this file is being manually downloaded during the build phase which does not integrate well with Zig's package manager and caching system. GitHub can't provide that file as a compressed tarball and fetching the entire repository source code is too wasteful.
It would be nice if there was a way to declare it as dependency to build.zig.zon: