libkrun icon indicating copy to clipboard operation
libkrun copied to clipboard

libkrun 1.10.1 virtio-fs breaks zig build system when using dependencies

Open tsujp opened this issue 9 months ago • 0 comments

Using the latest stable release Zig 0.14.0 and having any dependency on another Zig package will result in an error like the following:

/home/jammy/.cache/zig/p/tracy-0.0.4-OH_jZFenAACxUqZw7xWR6V3BuASTEYmYZt5yij8HN_hS/build.zig.zon:8:20: error: package contains 'tracy-0.11.1/server/TracyThreadCompress.cpp' which has illegal file type 'unknown'
            .url = "https://github.com/wolfpld/tracy/archive/refs/tags/v0.11.1.tar.gz",
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

When attempting to build a project.

This is a setup running Podman:

Client:       Podman Engine
Version:      5.4.1
API Version:  5.4.1
Go Version:   go1.24.1
Built:        Thu Jan  1 09:00:00 1970
OS/Arch:      darwin/arm64

Server:       Podman Engine
Version:      5.4.1
API Version:  5.4.1
Go Version:   go1.23.7
Git Commit:   b79bc8afe796cba51dd906270a7e1056ccdfcf9e
Built:        Tue Mar 11 09:00:00 2025
OS/Arch:      linux/arm64

With krunkit as the machine provider:

krunkit 0.1.4

And libkrun 1.10.1 installed. This error does not occur when using vfkit as the machine provider. This issue has previously been mentioned (unrelated to libkrun) here: https://ziggit.dev/t/getting-error-about-illegal-file-type-unknown-when-fetching-dependencies/7585

tsujp avatar Mar 28 '25 14:03 tsujp