From 51801e4261c17f4bc765e928d9a17793e2afd8a4 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Fri, 23 Jul 2021 23:56:39 -0700 Subject: [PATCH] cmd/fetch- dont gen lockfile when in bootstrap mode --- src/cmd/fetch.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cmd/fetch.zig b/src/cmd/fetch.zig index 93bca572afae180dc8e12500660943dc424ebf86..273681badc2d8e4f5a5d340f9f6c7747a7cb2bca 100644 --- a/src/cmd/fetch.zig +++ b/src/cmd/fetch.zig @@ -6,6 +6,10 @@ const known_folders = @import("known-folders"); const u = @import("./../util/index.zig"); const common = @import("./../common.zig"); +const root = @import("root"); +const build_options = if (@hasDecl(root, "build_options")) root.build_options else struct {}; +const bootstrap = if (@hasDecl(build_options, "bootstrap")) build_options.bootstrap else false; + // // @@ -25,6 +29,8 @@ pub fn execute(args: [][]u8) !void { try create_depszig(dir, top_module, list); + if (bootstrap) return; + try create_lockfile(list, dir); } -- 2.54.0