| ... | ... | @@ -118,6 +118,9 @@ fn create_lockfile(list: *std.ArrayList(u.Module), dir: []const u8) !void { |
| 118 | 118 | const wl = fl.writer(); |
| 119 | 119 | for (list.items) |m| { |
| 120 | 120 | if (m.dep) |md| { |
| 121 | if (md.type == .local) { |
| 122 | continue; |
| 123 | } |
| 121 | 124 | const mpath = try std.fs.path.join(gpa, &.{ dir, m.clean_path }); |
| 122 | 125 | const version = if (md.version.len > 0) md.version else (try md.type.exact_version(mpath)); |
| 123 | 126 | try wl.print("{s} {s} {s} {s}\n", .{ m.clean_path, @tagName(md.type), md.path, version }); |