Skip to content

Commit 8de7518

Browse files
committed
update README
1 parent c2f7bb4 commit 8de7518

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,21 @@ based on it).
5959
This means the user is to provide build options that will fetch all dependencies
6060
he expects to be in the package.
6161

62-
For now, this tool does not use the exact same filter logic as zig's filter on the `paths`
63-
field of `build.zig.zon`, so it cannot guarantee that the packaged dependencies
64-
produce the same hash. In that case the extract command will fail. That could be
65-
avoided by vendoring zig's Manifest parser or making it available in the standard
66-
library in the future.
67-
Not applying any filter would be an option too, but other tools
68-
like a misconfigured `zls` may write files into the zig package cache and add
69-
files we dont want too include in the package:
62+
This tool does use the exact same filter logic as zig's filter on the `paths`
63+
field of `build.zig.zon`, but for packages without a `build.zig.zon` it uses
64+
a hard coded list of paths the exclude when packaging:
7065

71-
```
72-
ls ~/.cache/zig/p/known_folders-0.0.0-Fy-PJtLDAADGDOwYwMkVydMSTp_aN-nfjCZw6qPQ2ECL/.zig-cache
73-
h o tmp z
66+
```zig
67+
pub const default_ignores: []const []const u8 = &.{
68+
"zig-cache/",
69+
".zig-cache/",
70+
"zig-out/",
71+
".git/",
72+
".svn/",
73+
".venv/",
74+
"_venv/",
75+
".spin/",
76+
};
7477
```
7578

7679
## Graphviz dependency graph

0 commit comments

Comments
 (0)