Skip to content

Zig 0.16 branch #297

@unexge

Description

@unexge

Hey there, wanted to use libvaxis with Zig 0.16 (0.16.0-dev.2261+d6b3dd25a to be exact), and it seems to be failing to build:

/Users/burak/.cache/zig/p/uucode-0.1.0-ZZjBPj96QADXyt5sqwBJUnhaDYs_qBeeKijZvlRa0eqM/src/build/tables.zig:339:12: error: invalid builtin function: '@Type'
    return @Type(.{
           ^~~~~
/Users/burak/.cache/zig/p/uucode-0.1.0-ZZjBPj96QADXyt5sqwBJUnhaDYs_qBeeKijZvlRa0eqM/src/build/tables.zig:385:12: error: invalid builtin function: '@Type'
    return @Type(.{
           ^~~~~
/Users/burak/.cache/zig/p/uucode-0.1.0-ZZjBPj96QADXyt5sqwBJUnhaDYs_qBeeKijZvlRa0eqM/src/get.zig:103:16: error: invalid builtin function: '@Type'
    break :blk @Type(.{
               ^~~~~
/Users/burak/.cache/zig/p/uucode-0.1.0-ZZjBPj96QADXyt5sqwBJUnhaDYs_qBeeKijZvlRa0eqM/src/types.zig:539:12: error: invalid builtin function: '@Type'
    return @Type(.{
           ^~~~~
/Users/burak/.cache/zig/p/uucode-0.1.0-ZZjBPj96QADXyt5sqwBJUnhaDYs_qBeeKijZvlRa0eqM/src/types.zig:674:12: error: invalid builtin function: '@Type'
    return @Type(.{
           ^~~~~
/Users/burak/.cache/zig/p/uucode-0.1.0-ZZjBPj96QADXyt5sqwBJUnhaDYs_qBeeKijZvlRa0eqM/src/types.zig:1314:24: error: invalid builtin function: '@Type'
    const InnerUnion = @Type(.{
                       ^~~~~
/Users/burak/.cache/zig/p/uucode-0.1.0-ZZjBPj96QADXyt5sqwBJUnhaDYs_qBeeKijZvlRa0eqM/src/build/Ucd.zig:156:28: error: root source file struct 'fs' has no member named 'cwd'
    const file = try std.fs.cwd().openFile(file_path, .{});
...

I can only see errors from the uucode dependency, and it seems like it has a Zig 0.16 branch with fixes as well. Would you be open to having a Zig 0.16 branch with fixes for upcoming breakages? Would be happy to contribute - though seems like the only thing to do is using the 0.16 branch of uucode :)

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