From 89ec7145f1adecce62c3d21c9d96b156b1520cb5 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 12 Oct 2026 18:46:50 -0700 Subject: [PATCH] Maker: check for --fetch after --print-tree --- lib/compiler/Maker.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/compiler/Maker.zig b/lib/compiler/Maker.zig index a27ce4d4ea998138088a17af5c26c1abfa32716c..f85a66096c3f513f50faf0e6038337b865213233 100644 --- a/lib/compiler/Maker.zig +++ b/lib/compiler/Maker.zig @@ -1378,11 +1378,6 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig { return error.FailedButCacheIntact; } - if (options.fetch_mode == .all) { - _ = io.lockStderr(&.{}, .no_color) catch {}; - process.exit(0); - } - if (options.print_configuration == .tree) { const NO_COLOR = EnvVar.NO_COLOR.isSet(&graph.environ_map); const CLICOLOR_FORCE = EnvVar.CLICOLOR_FORCE.isSet(&graph.environ_map); @@ -1397,6 +1392,11 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig { process.exit(0); } + if (options.fetch_mode == .all) { + _ = io.lockStderr(&.{}, .no_color) catch {}; + process.exit(0); + } + // Create the dependencies.zig file for configurer to // obtain via `@import("@dependencies")`. { -- 2.54.0