-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
zig fetch errors with sha256 git repositories #21888
Comments
I have the same problem in fedora 40, zig version = 0.13.0 |
The current Git package fetching code only supports SHA-1 repositories, but it should be reasonably straightforward to expand it to support SHA-256: the underlying pack format is the same (except with all SHA-1 hashes replaced with SHA-256 hashes), and the Git protocol allows servers to indicate which hash format(s) they support via the |
Closes ziglang#21888 WIP: needs more testing
Closes ziglang#21888 WIP: needs more testing
Closes ziglang#21888 WIP: needs more testing
Closes ziglang#21888 WIP: needs more testing
Zig Version
0.14.0-dev.2097+d30e28754
Steps to Reproduce and Observed Behavior
Repro:
Or alternatively:
$ zig build /home/galaxyshard/projects/abcbuild.zig.zon:14:20: error: unable to iterate refs: EndOfStream .url = "git+https://codeberg.org/GalaxyShard/zig-nds-bindings.git#297a06aab678414a350cc9bb68b5705b9969913601397c065dc847e1610d2200", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(I believe there is also supposed to be a path seperator between the project name and build.zig.zon)
Expected Behavior
The repository should be fetched and checked out without error, whether it uses sha256 or sha1.
The text was updated successfully, but these errors were encountered: