authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-01 04:02:30 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-01 04:02:30 -08:00
log5aefcbf273f410c87a3d44104f5f3cf038d637eb
tree652f8da2098292e675693e4283cabd641ff00756
parentf4631581425f63772dacf1b1e99da8ca3c4375c5

remove ./ from as many places as possible


4 files changed, 7 insertions(+), 7 deletions(-)

src/cmd_add.zig+2-2
......@@ -17,7 +17,7 @@ pub fn execute(args: [][]u8) !void {
1717 const dep_type = std.meta.stringToEnum(u.DepType, dept);
1818 u.assert(dep_type != null, "provided <type> parameter \"{}\" is not a valid dependency type", .{dept});
1919
20 const m = try u.ModFile.init(gpa, "./zig.mod");
20 const m = try u.ModFile.init(gpa, "zig.mod");
2121 for (m.deps) |d| {
2222 u.assert(!(d.type == dep_type.? and std.mem.eql(u8, d.path, path)), "dependency already added, skipping!", .{});
2323 }
......@@ -38,7 +38,7 @@ pub fn execute(args: [][]u8) !void {
3838 });
3939
4040 //
41 const f = try std.fs.cwd().createFile("./zig.mod", .{});
41 const f = try std.fs.cwd().createFile("zig.mod", .{});
4242 defer f.close();
4343
4444 const w = f.writer();
src/cmd_fetch.zig+2-2
......@@ -13,10 +13,10 @@ pub fn execute(args: [][]u8) !void {
1313 const home = try known_folders.getPath(gpa, .home);
1414 const dir = try fs.path.join(gpa, &[_][]const u8{home.?, ".cache", "zigmod", "deps"});
1515
16 const top_module = try fetch_deps(dir, "./zig.mod");
16 const top_module = try fetch_deps(dir, "zig.mod");
1717
1818 //
19 const f = try fs.cwd().createFile("./deps.zig", .{});
19 const f = try fs.cwd().createFile("deps.zig", .{});
2020 defer f.close();
2121
2222 const w = f.writer();
src/cmd_init.zig+1-1
......@@ -10,7 +10,7 @@ pub fn execute(args: [][]u8) !void {
1010 const name = try detect_pkgname(u.try_index([]const u8, args, 0, ""));
1111 const mainf = try detct_mainfile(u.try_index([]const u8, args, 1, ""));
1212
13 const file = try std.fs.cwd().createFile("./zig.mod", .{});
13 const file = try std.fs.cwd().createFile("zig.mod", .{});
1414 defer file.close();
1515
1616 const fwriter = file.writer();
src/cmd_sum.zig+2-2
......@@ -12,10 +12,10 @@ pub fn execute(args: [][]u8) !void {
1212 //
1313 const home = try known_folders.getPath(gpa, .home);
1414 const dir = try std.fs.path.join(gpa, &[_][]const u8{home.?, ".cache", "zigmod", "deps"});
15 const top_module = try common.collect_deps(dir, "./zig.mod");
15 const top_module = try common.collect_deps(dir, "zig.mod");
1616
1717 //
18 const f = try std.fs.cwd().createFile("./zig.sum", .{});
18 const f = try std.fs.cwd().createFile("zig.sum", .{});
1919 defer f.close();
2020 const w = f.writer();
2121