From 6d01d3a3395553281ca89bb5a30c1fa03b0aec70 Mon Sep 17 00:00:00 2001 From: Danh Phan Date: Fri, 15 Mar 2024 16:41:35 -0500 Subject: [PATCH] readme: Remove command to fetch latest version From @LordMZTE: > if you delete the package from the zig cache and then try building, > you will get a hash mismatch. > > the hash is derived from the contents of the dependency and it must > match or you get an error. a condition for this to work is that the > specified url always returns the same thing, which isn't the case for a > branch (when you push something). > > you might've gotten the feeling that this works because when zig finds > the hash you specified in it's cache, it will not check the URL to see > if it matches. --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index 33123079..cb703d4f 100644 --- a/README.md +++ b/README.md @@ -120,10 +120,6 @@ pub fn main() !void { 1. Declare Getty as a project dependency with `zig fetch`: ```sh - # Latest version - zig fetch --save git+https://github.com/getty-zig/getty.git#main - - # Specific version zig fetch --save git+https://github.com/getty-zig/getty.git# ```