Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://ziglang.org/download/latest does not exist (macos, x86_64) #153

Open
mayeranalytics opened this issue Nov 15, 2024 · 2 comments
Open

Comments

@mayeranalytics
Copy link

v2024_05_05

os=macos, arch=x86_64

❯ zig-out/bin/zigup fetch latest
install directory '/Users/me/zig'
mkdir '/Users/me/zig'
rm -rf '/Users/me/zig/latest.installing'
mkdir '/Users/me/zig/latest.installing'
downloading 'https://ziglang.org/download/latest/zig-macos-x86_64-latest.tar.xz' to '/Users/me/zig/latest.installing/zig-macos-x86_64-latest.tar.xz'
error: download 'https://ziglang.org/download/latest/zig-macos-x86_64-latest.tar.xz' failed: HTTP server replied with unsuccessful response '404 Not Found'
rm -rf '/Users/me/zig/latest.installing'

https://ziglang.org/download/latest/ does not exist. From what I can tell with my limited zig-knowledge zigup.zig downloads download_index_url = "https://ziglang.org/download/index.json" and I don't see how it gets this latest/ path .

@marler8997
Copy link
Owner

I think you're looking for zigup master. latest isn't a special reserved version so it's trying to interpret it as a version specifier (i.e. 0.14.0-dev.2271+f845fa04a). It would be nice to improve this error message but having non-special versions has valid use cases, for example you can copy a versioned subdirectory and name it whatever you want and just switch to it via zigup my-custom-version.

@HenningCode
Copy link

If I try to download a nominated zig version like 2024.10.0-mach with zigup 0.14.0-dev.1911+3bf89f55c, I also get a 404 error.

I just looked up the latest nominated version from here.

└─> zigup 0.14.0-dev.1911+3bf89f55c
install directory '/home/henning/zig'
mkdir '/home/henning/zig'
rm -rf '/home/henning/zig/0.14.0-dev.1911+3bf89f55c.installing'
mkdir '/home/henning/zig/0.14.0-dev.1911+3bf89f55c.installing'
downloading 'https://ziglang.org/builds/zig-linux-x86_64-0.14.0-dev.1911+3bf89f55c.tar.xz' to '/home/henning/zig/0.14.0-dev.1911+3bf89f55c.installing/zig-linux-x86_64-0.14.0-dev.1911+3bf89f55c.tar.xz'
error: download 'https://ziglang.org/builds/zig-linux-x86_64-0.14.0-dev.1911+3bf89f55c.tar.xz' failed: HTTP server replied with unsuccessful response '404 Not Found'
rm -rf '/home/henning/zig/0.14.0-dev.1911+3bf89f55c.installing'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants