Skip to content

Commit 70c6a9f

Browse files
committed
init: small fix to zig init template
it was placing the current zig version in the wrong field
1 parent 65db19a commit 70c6a9f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4796,7 +4796,8 @@ fn cmdInit(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
47964796
writeSimpleTemplateFile(Package.Manifest.basename,
47974797
\\.{{
47984798
\\ .name = .{s},
4799-
\\ .version = "{s}",
4799+
\\ .version = "0.0.1",
4800+
\\ .minimum_zig_version = "{s}",
48004801
\\ .paths = .{{""}},
48014802
\\ .fingerprint = 0x{x},
48024803
\\}}
@@ -4811,6 +4812,7 @@ fn cmdInit(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
48114812
};
48124813
writeSimpleTemplateFile(Package.build_zig_basename,
48134814
\\const std = @import("std");
4815+
\\
48144816
\\pub fn build(b: *std.Build) void {{
48154817
\\ _ = b; // stub
48164818
\\}}

0 commit comments

Comments
 (0)