You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run zig fetch --save=glfw https://pkg.machengine.org/glfw/e6f377baed70a7bef9fa08d808f40b64c5136bf6.tar.gz (the actual tarball is irrelevant, I used slimsag/glfw as an example as this was where I encountered the issue).
Open build.zig.zon and observe that the dependency glfw has been added with the URL from step 2.
Run zig fetch --save=glfw git+https://github.com/slimsag/glfw (as with above, the actual repo is irrelevant as long as it's a git repository).
Open build.zig.zon and note that the url was changed to git+https://github.com/slimsag/glfw, without a commit hash fragment.
If you delete the glfw entry and run zig fetch --save=glfw git+https://github.com/slimsag/glfw anew, its url is resolved to the expected git+https://github.com/slimsag/glfw#e6f377baed70a7bef9fa08d808f40b64c5136bf6 with the commit hash fragment.
Expected Behavior
Overwriting the existing dependency im step 4 resolves the ref to a commit hash as expected.
The text was updated successfully, but these errors were encountered:
castholm
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Oct 9, 2024
Zig Version
0.14.0-dev.1710+8ee52f99c
Steps to Reproduce and Observed Behavior
zig init
in an empty directory.zig fetch --save=glfw https://pkg.machengine.org/glfw/e6f377baed70a7bef9fa08d808f40b64c5136bf6.tar.gz
(the actual tarball is irrelevant, I used slimsag/glfw as an example as this was where I encountered the issue).glfw
has been added with the URL from step 2.zig fetch --save=glfw git+https://github.com/slimsag/glfw
(as with above, the actual repo is irrelevant as long as it's a git repository).url
was changed togit+https://github.com/slimsag/glfw
, without a commit hash fragment.If you delete the
glfw
entry and runzig fetch --save=glfw git+https://github.com/slimsag/glfw
anew, itsurl
is resolved to the expectedgit+https://github.com/slimsag/glfw#e6f377baed70a7bef9fa08d808f40b64c5136bf6
with the commit hash fragment.Expected Behavior
Overwriting the existing dependency im step 4 resolves the ref to a commit hash as expected.
The text was updated successfully, but these errors were encountered: