Skip to content

Commit

Permalink
readme: Remove command to fetch latest version
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ibokuri committed Mar 15, 2024
1 parent 165caba commit 6d01d3a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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#<COMMIT>
```

Expand Down

0 comments on commit 6d01d3a

Please sign in to comment.