From f7a9879579fb29fbcbfaa9326cc2df725cbdd69c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 16 Feb 2024 13:59:42 -0800 Subject: [PATCH] build: fix issue for long branch names --- src/build_config.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/build_config.zig b/src/build_config.zig index 33b76d252..803e3ee4d 100644 --- a/src/build_config.zig +++ b/src/build_config.zig @@ -50,8 +50,9 @@ pub const BuildConfig = struct { step.addOption(bool, "wasm_shared", self.wasm_shared); // Our version. We also add the string version so we don't need - // to do any allocations at runtime. - var buf: [64]u8 = undefined; + // to do any allocations at runtime. This has to be long enough to + // accomodate realistic large branch names for dev versions. + var buf: [1024]u8 = undefined; step.addOption(std.SemanticVersion, "app_version", self.version); step.addOption([:0]const u8, "app_version_string", try std.fmt.bufPrintZ( &buf,