Skip to content

Build segfaults in --system mode if a dependency has a path dependency #21623

@dermetfan

Description

@dermetfan

Zig Version

  • 0.13.0
  • 0.14.0-dev.1798+148b5b4c7

Steps to Reproduce and Observed Behavior

zig build segfaults in --system mode when build.zig.zon has a dependency that

  • is not a path dependency and
  • has another dependency that is a path dependency.

Visually:

A --(http)--> B --(path)--> C

I prepared a little repository so you can reproduce easily by following the steps in its README: https://github.com/dermetfan/zig-build-segfault

cd a
zig build --fetch
zig build --system ~/.cache/zig/p

Expected Behavior

The build should succeed normally, as is the case without --system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions