From c7c38c6fa4607e478a13e75d447cd3ad90f51137 Mon Sep 17 00:00:00 2001 From: jiacai2050 Date: Mon, 18 Nov 2024 21:09:21 +0800 Subject: [PATCH] fix build for master, ziglang/zig#21817 --- docs/go.mod | 4 +--- docs/go.sum | 3 +++ examples/simargs-demo.zig | 2 +- src/bin/loc.zig | 2 +- src/bin/tcp-proxy.zig | 2 +- src/bin/tree.zig | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/go.mod b/docs/go.mod index a78b1f5..07a66a0 100644 --- a/docs/go.mod +++ b/docs/go.mod @@ -2,6 +2,4 @@ module github.com/jiacai2050/zigcli/docs go 1.21 -require ( - github.com/google/docsy v0.10.0 // indirect -) +require github.com/google/docsy v0.11.0 // indirect diff --git a/docs/go.sum b/docs/go.sum index 78bc934..b3e7f52 100644 --- a/docs/go.sum +++ b/docs/go.sum @@ -1,4 +1,7 @@ github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= +github.com/FortAwesome/Font-Awesome v0.0.0-20240716171331-37eff7fa00de/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= github.com/google/docsy v0.10.0 h1:6tMDacPwAyRWNCfvsn/9qGOZDQ8b0aRzjRZvnZPY5dg= github.com/google/docsy v0.10.0/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc= +github.com/google/docsy v0.11.0 h1:QnV40cc28QwS++kP9qINtrIv4hlASruhC/K3FqkHAmM= +github.com/google/docsy v0.11.0/go.mod h1:hGGW0OjNuG5ZbH5JRtALY3yvN8ybbEP/v2iaK4bwOUI= github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= diff --git a/examples/simargs-demo.zig b/examples/simargs-demo.zig index 6cefe63..76777f4 100644 --- a/examples/simargs-demo.zig +++ b/examples/simargs-demo.zig @@ -1,7 +1,7 @@ const std = @import("std"); const simargs = @import("simargs"); -pub const std_options = .{ +pub const std_options: std.Options = .{ .log_level = .info, }; diff --git a/src/bin/loc.zig b/src/bin/loc.zig index f5db94e..8a88175 100644 --- a/src/bin/loc.zig +++ b/src/bin/loc.zig @@ -6,7 +6,7 @@ const util = @import("util.zig"); const StringUtil = util.StringUtil; const fs = std.fs; -pub const std_options = .{ +pub const std_options: std.Options = .{ .log_level = .info, }; diff --git a/src/bin/tcp-proxy.zig b/src/bin/tcp-proxy.zig index ad762d8..8edb7a5 100644 --- a/src/bin/tcp-proxy.zig +++ b/src/bin/tcp-proxy.zig @@ -5,7 +5,7 @@ const debugPrint = util.debugPrint; const net = std.net; const mem = std.mem; -pub const std_options = .{ +pub const std_options: std.Options = .{ .log_level = .debug, }; diff --git a/src/bin/tree.zig b/src/bin/tree.zig index bd687ee..e79aee6 100644 --- a/src/bin/tree.zig +++ b/src/bin/tree.zig @@ -15,7 +15,7 @@ const mem = std.mem; const testing = std.testing; const fmt = std.fmt; -pub const std_options = .{ +pub const std_options: std.Options = .{ .log_level = .info, };