From 4c29d288058514bf7cbffee5cc9beb78c1b989a5 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Wed, 3 Sep 2025 16:51:44 -0700 Subject: [PATCH] Revert "switch example depedendency based on zig version" This reverts commit 5bfcd1051911323d879e44b7aeb6799dadb1f5c7. --- example/build.zig | 8 +------- example/build.zig.zon | 4 ---- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/example/build.zig b/example/build.zig index 68bff88..24d1e03 100644 --- a/example/build.zig +++ b/example/build.zig @@ -1,10 +1,5 @@ const std = @import("std"); -const next_version_str = "0.16.0-dev.164+bc7955306"; -const next_version = std.SemanticVersion.parse(next_version_str) catch unreachable; -const zig_version = @import("builtin").zig_version; -const is_next = zig_version.order(next_version) == .eq or zig_version.order(next_version) == .gt; - // Although this function looks imperative, note that its job is to // declaratively construct a build graph that will be executed by an external // runner. @@ -31,8 +26,7 @@ pub fn build(b: *std.Build) void { .root_module = mod_exe, }); - const aws = if (is_next) "nightly" else "aws"; - const aws_dep = b.dependency(aws, .{ + const aws_dep = b.dependency("aws", .{ // These are the two arguments to the dependency. It expects a target and optimization level. .target = target, .optimize = optimize, diff --git a/example/build.zig.zon b/example/build.zig.zon index d8b8da0..39938bd 100644 --- a/example/build.zig.zon +++ b/example/build.zig.zon @@ -9,9 +9,5 @@ .url = "https://git.lerch.org/api/packages/lobo/generic/aws-sdk-with-models/cfc8aee1a6b54eac4a58893674361f1ad58e8595/cfc8aee1a6b54eac4a58893674361f1ad58e8595-with-models.tar.gz", .hash = "aws-0.0.1-SbsFcK8HCgA-P7sjZP5z7J7ZfZLTkQ4osD0qgbyUgTzG", }, - .nightly = .{ - .url = "https://git.lerch.org/api/packages/lobo/generic/aws-sdk-with-models/e41f98b389539c8bc6b1a231d25e2980318e5ef4/e41f98b389539c8bc6b1a231d25e2980318e5ef4nightly-zig-with-models.tar.gz", - .hash = "aws-0.0.1-SbsFcMQRCgCRIXmF1NuTo2olLnF19xwI3L8d_bPNgBrG", - }, }, }