Skip to content

zig fetch doesnt work on Dawn packages #16

Open
@cafeclimber

Description

@cafeclimber

So I saw #6 and read through. I didn't see anything explained in the README on how to deal with the dawn libs, but I tried as explained in the issue

Yes, Zig's package manager requires that you add all non-lazy dependencies and sub-dependencies to your build.zig.zon. You can manually copy the dependency entries out of the lib's build.zig.zon info your projects build.zig.zon, or give the URLs to zig fetch --save {url}.

Specifically I tried both doing zig fetch --save git+https://github.com/michal-z/webgpu_dawn-x86_64-windows-gnu.git

which gave this error

error: unable to determine name; fetched package has no build.zig.zon file

As well as just adding the deps manually to build.zig.zon by copying the relevant entries from the zgpu build.zig.zon.

This all arose from trying to use zgui so I hope I've chased this issue down to the right place 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions