authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-03-06 17:55:12 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-03-06 17:55:12 -08:00
log2a9b475997606cacb5eefedee3fbcb0228ca68d9
treeb670b28170517381006d233776299fa5a0a04f0e
parent465e47b781d5e64a92f9ba6be655cc154601c9da

cmd/aq/add- use the dir thats passed in


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

src/cmd/aquila/add.zig+1-1
...@@ -36,7 +36,7 @@ pub fn do(dir: std.fs.Dir, pkg_id: string) !string {...@@ -36,7 +36,7 @@ pub fn do(dir: std.fs.Dir, pkg_id: string) !string {
36 }36 }
37 }37 }
3838
39 const file = try zigmod.ModFile.openFile(std.fs.cwd(), .{ .mode = .read_write });39 var file = try zigmod.ModFile.openFile(dir, .{ .mode = .read_write });
40 defer file.close();40 defer file.close();
41 try file.seekTo(try file.getEndPos());41 try file.seekTo(try file.getEndPos());
4242