match-glfw: cannot import with package manager #1141

Closed
opened 2024-01-10 21:32:50 +00:00 by snooper3012 · 1 comment
snooper3012 commented 2024-01-10 21:32:50 +00:00 (Migrated from github.com)

when the build.zig.zon give me this

.{
    .name = "mein",
    .version = "0.0.0",
    .paths = [*c]u8{ "a" },
    .dependencies = .{
        .mach_glfw = .{
            .url = "https://pkg.machengine.org/mach-glfw/20d247fa4b70c0b3951cb3c439d3466f204754e1.tar.gz",
            .hash = "1220f237ad1e96b317837c766d9d2e92fb0a2b311cc9645877b520bd59ddc7cc55ee",
        },
    }
}

I get this error:

$ zig build
Fetch Packages [2/2] mach_glfw.glfw... /home/user_name/.cache/zig/p/1220f237ad1e96b317837c766d9d2e92fb0a2b311cc9645877b520bd59ddc7cc55ee/build.zig.zon:16:21: error: hash mismatch: expected: 122020d1ba277ff9e4b5ffff3e3bf4a3c98eeaec821e2a497d031070b05f7814b91f, found: 12209edc3063f961f38505acd6230069524ba45aa09a9df8e4382f6d57a543c14404
when the `build.zig.zon` give me this ``` .{ .name = "mein", .version = "0.0.0", .paths = [*c]u8{ "a" }, .dependencies = .{ .mach_glfw = .{ .url = "https://pkg.machengine.org/mach-glfw/20d247fa4b70c0b3951cb3c439d3466f204754e1.tar.gz", .hash = "1220f237ad1e96b317837c766d9d2e92fb0a2b311cc9645877b520bd59ddc7cc55ee", }, } } ``` I get this error: ``` $ zig build Fetch Packages [2/2] mach_glfw.glfw... /home/user_name/.cache/zig/p/1220f237ad1e96b317837c766d9d2e92fb0a2b311cc9645877b520bd59ddc7cc55ee/build.zig.zon:16:21: error: hash mismatch: expected: 122020d1ba277ff9e4b5ffff3e3bf4a3c98eeaec821e2a497d031070b05f7814b91f, found: 12209edc3063f961f38505acd6230069524ba45aa09a9df8e4382f6d57a543c14404 ```
emidoots commented 2024-01-11 05:09:42 +00:00 (Migrated from github.com)

Typically this indicates using an unsupported Zig version. Make sure you are using https://machengine.org/about/zig-version/

Typically this indicates using an unsupported Zig version. Make sure you are using https://machengine.org/about/zig-version/
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#1141
No description provided.