all: Zig package manager transitive dependency issue #902

Closed
opened 2023-07-31 05:10:49 +00:00 by emidoots · 2 comments
emidoots commented 2023-07-31 05:10:49 +00:00 (Migrated from github.com)

When someone wants to depend on mach-glfw for example, they should not need to write this code:

github.com/hexops/mach-gpu@54c614d619/build.zig (L36-L60)

When someone wants to depend on mach-glfw for example, they should not need to write this code: https://github.com/hexops/mach-gpu/blob/54c614d6191279d4b2c65c8097aa985ff163ee93/build.zig#L36-L60
emidoots commented 2023-08-04 06:23:52 +00:00 (Migrated from github.com)

Note: to find the name for a workaround, one can drop this in their build.zig:

    const build_runner = @import("root");
    const deps = build_runner.dependencies;
    inline for (@typeInfo(deps.imports).Struct.decls) |decl| {
        std.debug.print("{s}\n", .{decl.name});
    }
Note: to find the name for a workaround, one can drop this in their build.zig: ```zig const build_runner = @import("root"); const deps = build_runner.dependencies; inline for (@typeInfo(deps.imports).Struct.decls) |decl| { std.debug.print("{s}\n", .{decl.name}); } ```
emidoots commented 2023-09-16 21:45:44 +00:00 (Migrated from github.com)

In theory with latest Zig this is fixed. Testing now.

In theory with latest Zig this is fixed. Testing now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach#902
No description provided.