authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-07-23 23:56:39 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-07-23 23:56:39 -07:00
log51801e4261c17f4bc765e928d9a17793e2afd8a4
tree0ab6a5094142ffe987b6b4cb47e5d79cf1eb4e87
parent92d2acec54a4602b3301e005e56b1f16da6e8236

cmd/fetch- dont gen lockfile when in bootstrap mode


1 files changed, 6 insertions(+), 0 deletions(-)

src/cmd/fetch.zig+6
......@@ -6,6 +6,10 @@ const known_folders = @import("known-folders");
66const u = @import("./../util/index.zig");
77const common = @import("./../common.zig");
88
9const root = @import("root");
10const build_options = if (@hasDecl(root, "build_options")) root.build_options else struct {};
11const bootstrap = if (@hasDecl(build_options, "bootstrap")) build_options.bootstrap else false;
12
913//
1014//
1115
......@@ -25,6 +29,8 @@ pub fn execute(args: [][]u8) !void {
2529
2630 try create_depszig(dir, top_module, list);
2731
32 if (bootstrap) return;
33
2834 try create_lockfile(list, dir);
2935}
3036