From 3e473765391673584db04a6db606383e92382a33 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Fri, 10 Apr 2026 17:52:32 +0800 Subject: [PATCH] chore: Update .air.toml configuration for improved build process - Added "logs" to the list of excluded directories to prevent unnecessary file monitoring. - Changed the `send_interrupt` setting to false, altering the behavior of the build process on interruptions. - Enabled `clean_on_exit` to true, ensuring temporary files are removed upon exit. These adjustments enhance the build configuration, optimizing the development workflow. --- .air.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.air.toml b/.air.toml index 3700c075..8fe10be2 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"] + exclude_dir = ["assets", "tmp", "vendor", "testdata", "frontend", "migrations", "node_modules", "docs", "logs"] exclude_file = [] exclude_regex = ["_test.go"] exclude_unchanged = false @@ -23,7 +23,7 @@ tmp_dir = "tmp" poll_interval = 0 rerun = false rerun_delay = 500 - send_interrupt = true + send_interrupt = false stop_on_error = false [color] @@ -38,7 +38,7 @@ tmp_dir = "tmp" time = false [misc] - clean_on_exit = false + clean_on_exit = true [screen] clear_on_rebuild = false