capy-ui / zig-template

Simple template for creating a Capy app in Zig
The Unlicense
26 stars 11 forks source link

'error: UnsupportedOs' after updating capy's version to master's head #16

Closed eduardogarre closed 2 weeks ago

eduardogarre commented 1 month ago

After downloading this template, if I try to:

  1. Update capy to the latest checkout, through zig fetch --save https://github.com/capy-ui/capy/archive/refs/heads/master.zip
  2. Build it using zig build run

I'm greeted with error: UnsupportedOs.

Am I doing anything wrong, is it by design, or is it an error in this template or capy itself?

The reason I'm trying to switch to the latest checkout is because in the checkout currently being used in this template, I cannot get the Canvas component to work in any of the capy-ui/capy/examples/ projects. I want to check if that error keeps happening in HEAD.

OS: Windows 11 zig version: 0.13.0

Error message:

error: UnsupportedOs
C:\Users\lol\AppData\Local\zig\p\1220ad9893f583a1c0e3c08f23a58e0846600d1ee854fb916c95678df0a3b4be6dd3\build_capy.zig:272:13: 0x1a5432 in runStep (build.exe.obj)
            return error.UnsupportedOs;
            ^
C:\Users\lol\proyectos\pruebas_zig\build.zig:39:19: 0x1a5f0b in build (build.exe.obj)
    const serve = try build_capy.runStep(wasm, .{});
                  ^
C:\Users\lol\AppData\Local\Microsoft\WinGet\Packages\zig.zig_Microsoft.Winget.Source_8wekyb3d8bbwe\zig-windows-x86_64-0.13.0\lib\std\Build.zig:2117:24: 0x18d969 in runBuild__anon_8953 (build.exe.obj)
        .ErrorUnion => try build_zig.build(b),
                       ^
C:\Users\lol\AppData\Local\Microsoft\WinGet\Packages\zig.zig_Microsoft.Winget.Source_8wekyb3d8bbwe\zig-windows-x86_64-0.13.0\lib\compiler\build_runner.zig:301:9: 0x188e2c in main (build.exe.obj)
        try builder.runBuild(root);
        ^
error: the following build command failed with exit code 1:
C:\Users\lol\proyectos\pruebas_zig\.zig-cache\o\2a9db4617d44a27beab2a2fd9810e1fd\build.exe C:\Users\lol\AppData\Local\Microsoft\WinGet\Packages\zig.zig_Microsoft.Winget.Source_8wekyb3d8bbwe\zig-windows-x86_64-0.13.0\zig.exe C:\Users\lol\proyectos\pruebas_zig C:\Users\lol\proyectos\pruebas_zig\.zig-cache C:\Users\lol\AppData\Local\zig --seed 0x7944f842 -Z197d3731e16a0900 run
zenith391 commented 2 weeks ago

This was fixed with 546e3853a90847ab83038b9003495d50d175ed91