mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
init: small fix to zig init template
it was placing the current zig version in the wrong field
This commit is contained in:
parent
65db19a289
commit
70c6a9fba6
@ -4796,7 +4796,8 @@ fn cmdInit(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
|
||||
writeSimpleTemplateFile(Package.Manifest.basename,
|
||||
\\.{{
|
||||
\\ .name = .{s},
|
||||
\\ .version = "{s}",
|
||||
\\ .version = "0.0.1",
|
||||
\\ .minimum_zig_version = "{s}",
|
||||
\\ .paths = .{{""}},
|
||||
\\ .fingerprint = 0x{x},
|
||||
\\}}
|
||||
@ -4811,6 +4812,7 @@ fn cmdInit(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
|
||||
};
|
||||
writeSimpleTemplateFile(Package.build_zig_basename,
|
||||
\\const std = @import("std");
|
||||
\\
|
||||
\\pub fn build(b: *std.Build) void {{
|
||||
\\ _ = b; // stub
|
||||
\\}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user