wrench: index.json lists files that do not exist in the server #1416
Labels
No labels
CI
all
basisu
blog
bug
build
contributor-friendly
core
correctness
deferred
dev
direct3d-headers
docs
driver-os-issue
duplicate
dxcompiler
editor
examples
experiment
feature-idea
feedback
flac
freetype
gamemode
gkurve
glfw
gpu
gpu-dawn
harfbuzz
help welcome
in-progress
infrastructure
invalid
libmach
linux-audio-headers
long-term
mach
mach.gfx
mach.math
mach.physics
mach.testing
model3d
needs-triage
object
opengl-headers
opus
os/linux
os/macos
os/wasm
os/windows
package-manager
priority
proposal
proposal-accepted
question
roadmap
slipped
stability
sysaudio
sysgpu
sysjs
validating-fix
vulkan-zig-generated
wayland-headers
website
wontfix
wrench
www
x11-headers
xcode-frameworks
zig-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hexops/mach#1416
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Unsure where this issue belongs.
I come referenced from this link directing me into wrench
https://github.com/mlugg/setup-zig/tree/main?tab=readme-ov-file#adding-a-mirror
Tested yesterday and today (23.mar.2025)
Almost every link listed at https://github.com/mlugg/setup-zig/blob/main/mirrors.json is missing the files for
0.14.0.Yet, all of their index.json data contains direct links to non-existing
*0.14.0.[zip/tar]files with urls pointing to their domains.This leads me to think that something in their tooling is populating their index.json correctly, but not uploading the actual tarballs.
The mirror hosted by machengine does work correctly, though.
I don't know if those links are using wrench, but I don't know where to start and setup-zig is pointing me in this direction.
So I figured you guys might have some insight.
Got example links?
@emidoots Yea, here are some json arrays of the hits for the servers at:
https://github.com/mlugg/setup-zig/blob/main/mirrors.json
Unable to fetch:
Works:
One of the reasons why I added a status page => https://status.nesovic.dev/history/zig-mirror
A few weeks back I experienced a wrench issue. When I get some spare time I'll investigate why the
0.14.0didn't propagate as expected. @heysokamIt seems that wrench has cached a 404 response as this shows up in the logs:
zig: not fetching: https://ziglang.org/download/0.14.0/zig-linux-x86_64-0.14.0.tar.xz (cached error bad response status: 404 Not Found).I have restarted wrench and now the file (https://zig.nekos.space/zig/0.14.0/zig-linux-x86_64-0.14.0.tar.xz) should exist and download correctly. Please let me know if this works.
@0t4u Can confirm your link now works.
I've done the same for my mirror, can confirm this solves the issue.
Same issues as it seems:
Restarting fixes it.
If you know of something a bit more stable than wrench, feel free to recommend. Would like to have it stable and not think about the mirror... 😂
Bugs happen, that statement isn't particularly productive. When I last checked wrench was the only software providing a Zig mirror OOTB.
It should be (in theory) relatively simple to add a check to see if the file path with the cached 404 corresponds to an entry in the index file and refetch, I'll see if I can throw together a PR tonight.