Skip to content

Commit d81b81d

Browse files
committed
update fetch example
1 parent 2cca834 commit d81b81d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ All other dependencies are bundled in the source tree and compiled statically.
77

88
## Usage
99
Update your `build.zig.zon`:
10-
```
11-
zig fetch --save https://github.com/allyourcodebase/libgit2/archive/refs/tags/v1.8.1.tar.gz
10+
```sh
11+
zig fetch --save git+https://github.com/allyourcodebase/libgit2
12+
# or if you want a tagged release
13+
zig fetch --save https://github.com/allyourcodebase/libgit2/archive/refs/tags/${tag}.tar.gz
1214
```
1315

1416
Then, in your `build.zig`, you can access the library as a dependency:

0 commit comments

Comments
 (0)