| ... | ... | @@ -5,6 +5,7 @@ const ansi = @import("ansi"); |
| 5 | 5 | const zigmod = @import("../lib.zig"); |
| 6 | 6 | const u = @import("./../util/index.zig"); |
| 7 | 7 | const common = @import("./../common.zig"); |
| 8 | const license = @import("./license.zig"); |
| 8 | 9 | |
| 9 | 10 | // |
| 10 | 11 | // |
| ... | ... | @@ -31,6 +32,13 @@ pub fn execute(args: [][]u8) !void { |
| 31 | 32 | try create_lockfile(gpa, &list, cachepath, dir); |
| 32 | 33 | |
| 33 | 34 | try diff_lockfile(gpa); |
| 35 | |
| 36 | options.update = false; |
| 37 | |
| 38 | var outfile = try dir.createFile("licenses.txt", .{}); |
| 39 | defer outfile.close(); |
| 40 | |
| 41 | try license.do(cachepath, dir, &options, outfile); |
| 34 | 42 | } |
| 35 | 43 | |
| 36 | 44 | pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.Dir, top_module: zigmod.Module, list: *std.ArrayList(zigmod.Module)) !void { |