| ... | ... | @@ -908,7 +908,7 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig { |
| 908 | 908 | try group.await(io); |
| 909 | 909 | |
| 910 | 910 | for (options.forks) |*fork| { |
| 911 | | if (fork.failed) process.exit(1); |
| 911 | if (fork.failed) return error.AlreadyReported; |
| 912 | 912 | try fork_set.put(arena, .{ |
| 913 | 913 | .path = fork.path, |
| 914 | 914 | .manifest_ast = fork.manifest_ast, |
| ... | ... | @@ -1086,7 +1086,7 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig { |
| 1086 | 1086 | }); |
| 1087 | 1087 | } |
| 1088 | 1088 | } |
| 1089 | | if (any_unused) process.exit(1); |
| 1089 | if (any_unused) return error.FailedButCacheIntact; |
| 1090 | 1090 | } |
| 1091 | 1091 | |
| 1092 | 1092 | try job_queue.consolidateErrors(); |
| ... | ... | @@ -1293,7 +1293,7 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig { |
| 1293 | 1293 | } |
| 1294 | 1294 | try unlazy_set.put(arena, .fromSlice(hash), {}); |
| 1295 | 1295 | } |
| 1296 | | if (any_errors) process.exit(1); |
| 1296 | if (any_errors) return error.FailedButCacheIntact; |
| 1297 | 1297 | if (options.system_pkg_dir_path) |p| { |
| 1298 | 1298 | // In this mode, the system needs to provide these packages; they |
| 1299 | 1299 | // cannot be fetched by Zig. |
| ... | ... | @@ -1303,7 +1303,7 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig { |
| 1303 | 1303 | } |
| 1304 | 1304 | log.info("remote package fetching disabled due to --system mode", .{}); |
| 1305 | 1305 | log.info("dependencies might be avoidable depending on build configuration", .{}); |
| 1306 | | process.exit(1); |
| 1306 | return error.FailedButCacheIntact; |
| 1307 | 1307 | } |
| 1308 | 1308 | continue :cp; |
| 1309 | 1309 | } |