1
0
Fork
You've already forked quote
0

Project doesn't build #1

Closed
opened 2026年07月06日 00:05:04 +02:00 by brunobord · 2 comments

Hello,

Out of curiosity, I've tried to build the project, but it failed:

$ zig build
/path/to/quote/build.zig.zon:13:20: error: unable to create fetch stream: EndOfStream
 .url = "git+https://codeberg.org/sicher/sokol-zig#78fdd3653f9fc86b59688b5c48bee6512fc1e5ed",
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Apparently, it looks like your build.zig.zon file is pointing at an unknown revision in the sicher/sokol-zig repository; or something like this.

I've tried to patch the file, and make it point at the latest commit to date:

diff --git a/build.zig.zon b/build.zig.zon
index 796e03435c..377be0e71c 100644
--- a/build.zig.zon
+++ b/build.zig.zon
@@ -10,8 +10,8 @@
 },
 .dependencies = .{
 .sokol = .{
- .url = "git+https://codeberg.org/sicher/sokol-zig#78fdd3653f9fc86b59688b5c48bee6512fc1e5ed",
- .hash = "sokol-0.1.0-pb1HK0n7NgCbgkVh1g2mDNKPUjLwkPa2zMozU0uTurph",
+ .url = "git+https://codeberg.org/sicher/sokol-zig#8bed105f88e9da63f9e51c2d985d5bbc7a3c387d",
+ .hash = "sokol-0.1.0-pb1HK0RzNwA3RBUKW2tTLZG2rWnLRt9ipWiXp6J5fypK",
 },
 .dvui = .{
 .path = "../dvui-fork",

... but it failed at a different step:

$ zig build
/path/to/quote/zig-pkg/sokey-0.1.0-i3-0Ks2BAAAgjuQgm-CPrGuAya4Q87OV6S-yPQp2MOUA/build.zig.zon:16:20: error: unable to create fetch stream: EndOfStream
 .url = "git+https://codeberg.org/sicher/sokol-zig#78fdd3653f9fc86b59688b5c48bee6512fc1e5ed",
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

So now it's the sokey package which requires the same sokol-zig version that doesn't build.

Unfortunately, I don't have enough knowledge about zig to know how to work things out. Do you think that something's missing on my end? How could I build this zig project to check it out?

Hello, Out of curiosity, I've tried to build the project, but it failed: ```console $ zig build /path/to/quote/build.zig.zon:13:20: error: unable to create fetch stream: EndOfStream .url = "git+https://codeberg.org/sicher/sokol-zig#78fdd3653f9fc86b59688b5c48bee6512fc1e5ed", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` Apparently, it looks like your `build.zig.zon` file is pointing at an unknown revision in the `sicher/sokol-zig` repository; or something like this. I've tried to patch the file, and make it point at the latest commit to date: ```diff diff --git a/build.zig.zon b/build.zig.zon index 796e03435c..377be0e71c 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -10,8 +10,8 @@ }, .dependencies = .{ .sokol = .{ - .url = "git+https://codeberg.org/sicher/sokol-zig#78fdd3653f9fc86b59688b5c48bee6512fc1e5ed", - .hash = "sokol-0.1.0-pb1HK0n7NgCbgkVh1g2mDNKPUjLwkPa2zMozU0uTurph", + .url = "git+https://codeberg.org/sicher/sokol-zig#8bed105f88e9da63f9e51c2d985d5bbc7a3c387d", + .hash = "sokol-0.1.0-pb1HK0RzNwA3RBUKW2tTLZG2rWnLRt9ipWiXp6J5fypK", }, .dvui = .{ .path = "../dvui-fork", ``` ... but it failed at a different step: ```console $ zig build /path/to/quote/zig-pkg/sokey-0.1.0-i3-0Ks2BAAAgjuQgm-CPrGuAya4Q87OV6S-yPQp2MOUA/build.zig.zon:16:20: error: unable to create fetch stream: EndOfStream .url = "git+https://codeberg.org/sicher/sokol-zig#78fdd3653f9fc86b59688b5c48bee6512fc1e5ed", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` So now it's the `sokey` package which requires the same `sokol-zig` version that doesn't build. Unfortunately, I don't have enough knowledge about `zig` to know how to work things out. Do you think that something's missing on my end? How could I build this zig project to check it out?

The problem was a bunch of local dependencies that I used for fast iteration. I've set up so main has every dependency pinned by url+hash. Tested a fresh clone and it builds now. Note that macos is the only platform working at the moment. The editor is functional (I run it daily) but there are lots of wrinkles and missing features.

The problem was a bunch of local dependencies that I used for fast iteration. I've set up so main has every dependency pinned by url+hash. Tested a fresh clone and it builds now. Note that macos is the only platform working at the moment. The editor is functional (I run it daily) but there are lots of wrinkles and missing features.

thanks a lot for the quick fix! it compiles now!

thanks a lot for the quick fix! it compiles now!
Sign in to join this conversation.
No Branch/Tag specified
main
dev
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
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
sicher/quote#1
Reference in a new issue
sicher/quote
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?