We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7aea5cf commit ca52633Copy full SHA for ca52633
1 file changed
build.zig
@@ -5,7 +5,11 @@ pub fn build(b: *std.Build) !void {
5
const target = b.standardTargetOptions(.{});
6
const optimize = b.standardOptimizeOption(.{});
7
8
- const version = getVersion(b);
+ 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);
13
14
const scripty = b.dependency("scripty", .{});
15
const superhtml = b.addModule("superhtml", .{
0 commit comments