Skip to content

Commit ca52633

Browse files
committed
add ability to specify version manually
1 parent 7aea5cf commit ca52633

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

build.zig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ pub fn build(b: *std.Build) !void {
55
const target = b.standardTargetOptions(.{});
66
const optimize = b.standardOptimizeOption(.{});
77

8-
const version = getVersion(b);
8+
const version: Version = if (b.option(
9+
[]const u8,
10+
"force-version",
11+
"When building the SuperHTML CLI tool force a specific version, bypassing 'git describe'",
12+
)) |v| .{ .commit = v } else getVersion(b);
913

1014
const scripty = b.dependency("scripty", .{});
1115
const superhtml = b.addModule("superhtml", .{

0 commit comments

Comments
 (0)