From f326d75b62234e9b42f038f4a48e1b7e4dc08393 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Wed, 22 Apr 2026 15:36:44 +0800 Subject: [PATCH] feat: Update excluded directories in .air.toml for build process - Expanded the `exclude_dir` list in the `.air.toml` configuration to include additional directories such as "data", "WeKnora-Chrome-Extension", "Formula", and others, ensuring a more comprehensive exclusion during the build process. - This change aims to streamline the build environment by preventing unnecessary file monitoring and potential conflicts, enhancing overall efficiency. --- .air.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.air.toml b/.air.toml index 8fe10be2..6ca65941 100644 --- a/.air.toml +++ b/.air.toml @@ -7,7 +7,7 @@ tmp_dir = "tmp" 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" delay = 1000 - exclude_dir = ["assets", "tmp", "vendor", "testdata", "frontend", "migrations", "node_modules", "docs", "logs"] + 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 = [] exclude_regex = ["_test.go"] exclude_unchanged = false