The Zig 0.16 build fix temporarily changed agent/src/collectors/inventory.zig so collectInventory returns an empty payload list.
Why:
- The existing scanner still uses pre-0.16 filesystem APIs such as
std.fs.openDirAbsolute, old Dir methods, and old file read helpers.
- Leaving those code paths active prevented
zig build from completing under Zig 0.16.
Expected fix:
- Port the scanner to
std.Io.Dir and explicit std.Io usage.
- Preserve the existing npm/pnpm/yarn/bun/go/ruby package parsing behavior.
- Add or restore tests that exercise directory walking and lockfile parsing under Zig 0.16.
- Remove the temporary empty-result implementation.
Acceptance criteria:
zig build passes.
zig build test passes or the remaining test blockers are documented separately.
- Inventory events are emitted again for supported package metadata.
The Zig 0.16 build fix temporarily changed
agent/src/collectors/inventory.zigsocollectInventoryreturns an empty payload list.Why:
std.fs.openDirAbsolute, oldDirmethods, and old file read helpers.zig buildfrom completing under Zig 0.16.Expected fix:
std.Io.Dirand explicitstd.Iousage.Acceptance criteria:
zig buildpasses.zig build testpasses or the remaining test blockers are documented separately.