E.g. error: unable to create fetch stream: ProtocolError
Locally (on macOS) it works fine, the CI machine which breaks is also macOS though. nvm, this was just a caching effect, after deleting the global Zig cache the same problem happens locally.
This is the build.zig.zon (nothing has changed there though, except for updating the packages from time to time)
The Github Action to install Zig is mlugg/setup-zig (I don’t think this is at fault though).
Anybody else seeing this?
PS: this ticket seems to be related: fetch regressions · Issue #24732 · ziglang/zig · GitHub… and towards the end I see that at least @kj4tmp runs into the same issue (now I’m not sure though if I’ve been seeing the exact same problem since the beginning, or if the actual error has changed from one to another).
You should still be able to load a package into your cache from a local file (download it using your browser and pass a file path to zig fetch). This should at least unblock local development until the fetch regressions are fixed.
Or alternatively, you can also just clone the git source repository of the package and then do that same ‘fetch from local directory’. That’s what I usually do for local development on the dependencies (it’s similar to ‘npm link’, except it copies into the Zig cache instead of creating a filesystem link):