-
-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to download packages when running zig build
on btrfs
#1428
Comments
I got this too, but on master. I didn't see any commits anywhere that should have caused this, but I could have missed something. Did the top folder inside the tarballs always have the commit hash in the name? I didn't have any old ones to check. |
Same problem here. Maybe related: |
After deleting the global cache I hit this as well, issue occurs with both master and 0.11.0. Turns out this is an issue caused by btrfs getting the wrong hash ziglang/zig#17095, an upstream patch has been submitted to linux ziglang/zig#17095 (comment). The hashes required on btrfs are: --- a/build.zig.zon
+++ b/build.zig.zon
@@ -5,15 +5,15 @@
.dependencies = .{
.known_folders = .{
.url = "https://github.com/ziglibs/known-folders/archive/fa75e1bc672952efa0cf06160bbd942b47f6d59b.tar.gz",
- .hash = "122048992ca58a78318b6eba4f65c692564be5af3b30fbef50cd4abeda981b2e7fa5",
+ .hash = "1220206c698a1890d742a8b98acb16db99275d16f2e7fe2046c3d8f2249ed267ca71",
},
.diffz = .{
.url = "https://github.com/ziglibs/diffz/archive/90353d401c59e2ca5ed0abe5444c29ad3d7489aa.tar.gz",
- .hash = "122089a8247a693cad53beb161bde6c30f71376cd4298798d45b32740c3581405864",
+ .hash = "122090a5106337f6c86efeaecfedf14e1cd8f9944e8ba9c0c7fd9a9c54d860100ff7",
},
.binned_allocator = .{
.url = "https://gist.github.com/antlilja/8372900fcc09e38d7b0b6bbaddad3904/archive/6c3321e0969ff2463f8335da5601986cf2108690.tar.gz",
- .hash = "1220363c7e27b2d3f39de6ff6e90f9537a0634199860fea237a55ddb1e1717f5d6a5",
+ .hash = "122031b87e4aedc69cbc600a29aaf79317fa84d7fc4f9e619d947de121aaf637bb2a",
},
},
} |
zig build
zig build
on btrfs
I am no longer experiencing this issue on linux 6.5.3 (arch). |
Hey there, I'm getting this error as well when I try to build from source. I'm running Fedora 38, and here's some more info (original issue here including zls/zig version #1491).
And here's the exact error:
|
Upgrade your kernel version. |
here is the zig issue for this: ziglang/zig#17282 (comment) |
workaround landed in zig: ziglang/zig#17282 (comment) |
Zig Version
0.11.0
Zig Language Server Version
0.11.0
Steps to Reproduce
Download the ZLS 0.11.0 release and run
zig build
Expected Behavior
Build ZLS
Actual Behavior
The text was updated successfully, but these errors were encountered: