From 446b726cf90727f0d636d138d7662fabc81b2336 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Mon, 2 Feb 2026 16:30:23 -0800 Subject: [PATCH] update test to include a build of tools/build, fix aws dependency --- build.zig | 9 +++++++++ tools/build/build.zig.zon | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index e05aba9..fe6737d 100644 --- a/build.zig +++ b/build.zig @@ -56,11 +56,20 @@ pub fn build(b: *std.Build) !void { const run_main_tests = b.addRunArtifact(main_tests); + // Build the lambda-build CLI to ensure it compiles + // This catches dependency version mismatches between tools/build and the main project + const lambda_build_dep = b.dependency("lambda_build", .{ + .target = b.graph.host, + .optimize = optimize, + }); + const lambda_build_exe = lambda_build_dep.artifact("lambda-build"); + // This creates a build step. It will be visible in the `zig build --help` menu, // and can be selected like this: `zig build test` // This will evaluate the `test` step rather than the default, which is "install". const test_step = b.step("test", "Run library tests"); test_step.dependOn(&run_main_tests.step); + test_step.dependOn(&lambda_build_exe.step); // Create executable module const exe_module = b.createModule(.{ diff --git a/tools/build/build.zig.zon b/tools/build/build.zig.zon index 797a956..81cfe89 100644 --- a/tools/build/build.zig.zon +++ b/tools/build/build.zig.zon @@ -4,8 +4,8 @@ .fingerprint = 0x6e61de08e7e51114, .dependencies = .{ .aws = .{ - .url = "git+https://git.lerch.org/lobo/aws-sdk-for-zig.git#6e34e83933aaa1120b7d0049f458608fdd6fa27b", - .hash = "aws-0.0.1-SbsFcCs2CgChIYNjD8lAnGZTOk0_96-db5kDawRnzImA", + .url = "git+https://git.lerch.org/lobo/aws-sdk-for-zig#686b18d1f4329e80cf6d9b916eaa0c231333edb9", + .hash = "aws-0.0.1-SbsFcAc3CgCdWfayHWFazNfJBxkzLyU2wOJSj7h4W17-", }, }, .paths = .{