From d633d6a0b542d56b71fdc84576f1457f33fce172 Mon Sep 17 00:00:00 2001 From: Ankit Patial Date: Mon, 19 Jan 2026 19:11:36 +0530 Subject: [PATCH] Bump version to 0.1.1 - Fix panic when mixin not found with relative mixins_dir path - Add warning log when mixin is not found --- build.zig.zon | 2 +- src/runtime.zig | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index 7416bea..d3349d2 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,6 +1,6 @@ .{ .name = .pugz, - .version = "0.0.0", + .version = "0.1.1", .fingerprint = 0x822db0790e17621d, // Changing this has security and trust implications. .minimum_zig_version = "0.15.2", .dependencies = .{ diff --git a/src/runtime.zig b/src/runtime.zig index a24df6f..81a4a22 100644 --- a/src/runtime.zig +++ b/src/runtime.zig @@ -765,8 +765,11 @@ pub const Runtime = struct { } } - // If still not found, skip this mixin call - const mixin_def = mixin orelse return; + // If still not found, log warning and skip this mixin call + const mixin_def = mixin orelse { + std.log.warn("mixin '{s}' not found, skipping", .{call.name}); + return; + }; try self.context.pushScope(); defer self.context.popScope();