authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-12-02 01:15:54 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-12-02 01:15:54 -08:00
logabeab3b74c5cefc398f80dc0d2ec7c7e9cd64d21
tree56d30cab01eecac8624394347ec03a133139000e
parent3641ae4e3873dc51486631f7db1939d228dd54f6

cmd/fetch- use writeAll over print


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

src/cmd/fetch.zig+3-2
......@@ -51,7 +51,7 @@ pub fn create_depszig(cachepath: string, dir: std.fs.Dir, top_module: zigmod.Mod
5151 try w.writeAll("\n");
5252 try w.print("pub const cache = \"{}\";\n", .{std.zig.fmtEscapes(cachepath)});
5353 try w.writeAll("\n");
54 try w.print("{s}\n", .{
54 try w.writeAll(
5555 \\pub fn addAllTo(exe: *std.build.LibExeObjStep) void {
5656 \\ @setEvalBranchQuota(1_000_000);
5757 \\ for (packages) |pkg| {
......@@ -87,7 +87,8 @@ pub fn create_depszig(cachepath: string, dir: std.fs.Dir, top_module: zigmod.Mod
8787 \\ system_libs: []const string = &.{},
8888 \\};
8989 \\
90 });
90 \\
91 );
9192
9293 try w.writeAll("const dirs = struct {\n");
9394 try print_dirs(w, list.items);