package management: fix regression of printing expected hash

Regressed in ed4ccea7bae99c1baa634716941f308d9f922985. The early exit
path was only supposed to happen in case of --system mode.
This commit is contained in:
Andrew Kelley 2024-02-24 22:48:33 -07:00
parent 661137ac92
commit 08e886b8fe

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),