zig fetch: add --save flag

```
--save        Add the fetched package to build.zig.zon
--save=[name] Add the fetched package to build.zig.zon as name
```
This commit is contained in:
Andrew Kelley
2023-11-26 17:04:28 -07:00
parent a0c8d54823
commit 0c0b69891a
3 changed files with 347 additions and 111 deletions

View File

@@ -61,7 +61,7 @@ String.
When this is provided, the package is found in a directory relative to the
build root. In this case the package's hash is irrelevant and therefore not
computed.
computed. This field and `url` are mutually exclusive.
### `paths`