package management: fix regression of printing expected hash

Regressed in ed4ccea7ba. The early exit
path was only supposed to happen in case of --system mode.
This commit is contained in:
Andrew Kelley committed 2024-02-25 09:27:39 -08:00
1 parent 661137ac92
commit 08e886b8fe
1 file changed
+1 -1
+1 -1
View File
@@ -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),