| ... | @@ -568,14 +568,14 @@ fn runResource( | ... | @@ -568,14 +568,14 @@ fn runResource( |
| 568 | const actual_hex = Package.multiHashHexDigest(f.computed_hash.digest); | 568 | const actual_hex = Package.multiHashHexDigest(f.computed_hash.digest); |
| 569 | if (!std.mem.eql(u8, declared_hash.toSlice(), &actual_hex)) { | 569 | if (!std.mem.eql(u8, declared_hash.toSlice(), &actual_hex)) { |
| 570 | return f.fail(hash_tok, try eb.printString( | 570 | return f.fail(hash_tok, try eb.printString( |
| 571 | "hash mismatch: manifest declares {s} but the fetched package has {s}", | 571 | "hash mismatch: manifest declares '{s}' but the fetched package has '{s}'", |
| 572 | .{ declared_hash.toSlice(), actual_hex }, | 572 | .{ declared_hash.toSlice(), actual_hex }, |
| 573 | )); | 573 | )); |
| 574 | } | 574 | } |
| 575 | } else { | 575 | } else { |
| 576 | if (!computed_package_hash.eql(&declared_hash)) { | 576 | if (!computed_package_hash.eql(&declared_hash)) { |
| 577 | return f.fail(hash_tok, try eb.printString( | 577 | return f.fail(hash_tok, try eb.printString( |
| 578 | "hash mismatch: manifest declares {s} but the fetched package has {s}", | 578 | "hash mismatch: manifest declares '{s}' but the fetched package has '{s}'", |
| 579 | .{ declared_hash.toSlice(), computed_package_hash.toSlice() }, | 579 | .{ declared_hash.toSlice(), computed_package_hash.toSlice() }, |
| 580 | )); | 580 | )); |
| 581 | } | 581 | } |
| ... | @@ -726,6 +726,7 @@ fn queueJobsForDeps(f: *Fetch) RunError!void { | ... | @@ -726,6 +726,7 @@ fn queueJobsForDeps(f: *Fetch) RunError!void { |
| 726 | .hash = h: { | 726 | .hash = h: { |
| 727 | const h = dep.hash orelse break :h null; | 727 | const h = dep.hash orelse break :h null; |
| 728 | const pkg_hash: Package.Hash = .fromSlice(h); | 728 | const pkg_hash: Package.Hash = .fromSlice(h); |
| | 729 | if (h.len == 0) break :h pkg_hash; |
| 729 | const gop = f.job_queue.table.getOrPutAssumeCapacity(pkg_hash); | 730 | const gop = f.job_queue.table.getOrPutAssumeCapacity(pkg_hash); |
| 730 | if (gop.found_existing) { | 731 | if (gop.found_existing) { |
| 731 | if (!dep.lazy) { | 732 | if (!dep.lazy) { |