aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorTechatrix <techatrix@mailbox.org>2025-01-25 19:23:10 +0100
committerTechatrix <techatrix@mailbox.org>2025-03-07 22:20:35 +0100
commite6596cbbf077e00190af5dfb418dd9c30ebe9b6f (patch)
tree46a94488cf555ee150231a800baa8e842bb29faa /src/main.zig
parentc19f4c44022d5e123772139a13faaa3f3b3b6977 (diff)
downloadzig-e6596cbbf077e00190af5dfb418dd9c30ebe9b6f.tar.gz
zig-e6596cbbf077e00190af5dfb418dd9c30ebe9b6f.zip
add a reference to #21690
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig
index 1075993846..2a83ef7926 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -7282,7 +7282,11 @@ fn cmdFetch(
warn("overwriting existing dependency named '{s}'", .{name});
try fixups.replace_nodes_with_string.put(gpa, dep.location_node, location_replace);
- try fixups.replace_nodes_with_string.put(gpa, dep.hash_node, hash_replace);
+ if (dep.hash_node != 0) {
+ try fixups.replace_nodes_with_string.put(gpa, dep.hash_node, hash_replace);
+ } else {
+ // https://github.com/ziglang/zig/issues/21690
+ }
} else if (manifest.dependencies.count() > 0) {
// Add fixup for adding another dependency.
const deps = manifest.dependencies.values();