srctree

Andrew Kelley parent 661137ac 08e886b8
package management: fix regression of printing expected hash

Regressed in ed4ccea7bae99c1baa634716941f308d9f922985. The early exitpath was only supposed to happen in case of --system mode.

inlinesplit
src/Package/Fetch.zig added: 2, removed: 2, total 0
@@ -402,7 +402,7 @@ pub fn run(f: *Fetch) RunError!void {
return error.FetchFailed;
},
}
} else {
} else if (f.job_queue.read_only) {
try eb.addRootErrorMessage(.{
.msg = try eb.addString("dependency is missing hash field"),
.src_loc = try f.srcLoc(f.location_tok),