Skip to content

Restore Zig 0.16 support for package inventory scanner #42

@jusso-dev

Description

@jusso-dev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions