getty-zig / getty

A (de)serialization framework for Zig
https://getty.so
MIT License
200 stars 13 forks source link

deps: Update ibokuri dependency url #154

Closed sea-grass closed 9 months ago

sea-grass commented 9 months ago

Rewrites the protest dependency url in build.zig.zon (doesn't change the dependency version). Fixes the following error seen on latest Zig master (0.12.0-dev.2811+3cafb9655):

getty/build.zig.zon:13:20: error: unable to unpack git files: BadZlibHeader
            .url = "git+https://github.com/ibokuri/protest.git#bae398b701e763ef18480aa3cfcca103716996de",
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To reproduce the error:

  1. Add the latest Zig to your PATH
  2. Clear Zig caches (to ensure Zig build will attempt to fetch the protest dependency instead of using a cached version; there might be a better way to do this that doesn't involve nuking the entire cache): rm -rf ~/.cache/zig; cd path/to/getty; rm -rf zig-cache zig-out
  3. Run zig build
  4. See the above error
ibokuri commented 9 months ago

Thanks for the patch!