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.
This commit is contained in:
wizardchen
2026-04-10 17:52:32 +08:00
parent 5dd4b9f2ee
commit 3e47376539
+3 -3
View File
@@ -7,7 +7,7 @@ tmp_dir = "tmp"
bin = "./tmp/main" 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 = "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 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_file = []
exclude_regex = ["_test.go"] exclude_regex = ["_test.go"]
exclude_unchanged = false exclude_unchanged = false
@@ -23,7 +23,7 @@ tmp_dir = "tmp"
poll_interval = 0 poll_interval = 0
rerun = false rerun = false
rerun_delay = 500 rerun_delay = 500
send_interrupt = true send_interrupt = false
stop_on_error = false stop_on_error = false
[color] [color]
@@ -38,7 +38,7 @@ tmp_dir = "tmp"
time = false time = false
[misc] [misc]
clean_on_exit = false clean_on_exit = true
[screen] [screen]
clear_on_rebuild = false clear_on_rebuild = false