From 3074842e30aa2c394427a04e737bd39ae5f93453 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Thu, 23 Apr 2026 10:36:31 +0800 Subject: [PATCH] chore: Simplify build command in .air.toml configuration - Removed deprecated CGO flags from the build command in the .air.toml file, streamlining the build process for the application. - This change enhances compatibility and reduces potential build warnings, improving the overall development experience. --- .air.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.air.toml b/.air.toml index 6ca65941..a19ce720 100644 --- a/.air.toml +++ b/.air.toml @@ -5,7 +5,7 @@ tmp_dir = "tmp" [build] args_bin = [] bin = "./tmp/main" - cmd = "CGO_CFLAGS='-Wno-deprecated-declarations -Wno-gnu-folding-constant' $(uname | grep -q Darwin && echo \"CGO_LDFLAGS='-Wl,-no_warn_duplicate_libraries'\") go build -ldflags=\"$(./scripts/get_version.sh ldflags) -X 'google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn'\" -o ./tmp/main ./cmd/server" + cmd = "go build -ldflags=\"$(./scripts/get_version.sh ldflags) -X 'google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn'\" -o ./tmp/main ./cmd/server" delay = 1000 exclude_dir = ["assets", "tmp", "vendor", "testdata", "frontend", "migrations", "node_modules", "docs", "logs", "data", "WeKnora-Chrome-Extension", "Formula", "dataset", "docreader", "docker", "llm_debug", "web", "mcp-server", "misc", "scripts", "dist", "client", "helm"] exclude_file = []