authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-08-21 02:21:23 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-08-21 02:21:23 -07:00
log396f63375039cd6f42a22b7758864a810a8f32c8
treeac0cc60f2d4adcfead0eab49980d924bbf2795b4
parent23c790648a2fd38658aa0ce29a39645669758ffe

cmd/ci- split into execute and do methods


1 files changed, 5 insertions(+), 1 deletions(-)

src/cmd/ci.zig+5-1
......@@ -12,7 +12,10 @@ pub fn execute(args: [][]u8) !void {
1212
1313 const cachepath = try std.fs.path.join(gpa, &.{ ".zigmod", "deps" });
1414 const dir = std.fs.cwd();
15 try do(cachepath, dir);
16}
1517
18pub fn do(cachepath: []const u8, dir: std.fs.Dir) !void {
1619 var options = common.CollectOptions{
1720 .log = true,
1821 .update = false,
......@@ -23,5 +26,6 @@ pub fn execute(args: [][]u8) !void {
2326 var list = std.ArrayList(u.Module).init(gpa);
2427 try common.collect_pkgs(top_module, &list);
2528
26 try @import("./fetch.zig").create_depszig(cachepath, top_module, &list);
29 const fetch = @import("./fetch.zig");
30 try fetch.create_depszig(cachepath, dir, top_module, &list);
2731}