authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-05-04 13:09:19 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-05-04 13:09:19 -07:00
logb0e201648267b0c6746350fdcd3a83d48a0e3340
treebd4b45063588e9947912e70b5b26765eb8bef014
parent91d94a2dff5a162f9e0f2fe92e0c7beb1d128f68

cmd/init: add zigmod.lock to gitignore if package is module


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

src/cmd/init.zig+1
...@@ -151,6 +151,7 @@ pub fn execute(self_name: []const u8, args: [][]u8) !void {...@@ -151,6 +151,7 @@ pub fn execute(self_name: []const u8, args: [][]u8) !void {
151 try w.writeAll(".zigmod\n");151 try w.writeAll(".zigmod\n");
152 try w.writeAll("deps.zig\n");152 try w.writeAll("deps.zig\n");
153 try w.writeAll("files.zig\n");153 try w.writeAll("files.zig\n");
154 if (ptype == .lib) try w.writeAll("zigmod.lock\n");
154 }155 }
155 }156 }
156157