Files
Willie 70dec0a821 fix: resolve air binary path and use entrypoint config
Air installed via `go install` lands in GOPATH/bin, not GOROOT/bin.
Resolve the path dynamically with fallback auto-install. Also replace
deprecated `bin` with `entrypoint` in .air.toml.
2026-02-23 04:18:01 +08:00

27 lines
1.0 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Air – Go hot-reload for `make ui-dev` / devcontainer `ui` command.
# Docs: https://github.com/air-verse/air
root = "."
tmp_dir = "tmp"
[build]
entrypoint = "./cmd/skillshare"
cmd = "go build -o ./tmp/skillshare ./cmd/skillshare"
# SKILLSHARE_UI_EXEC_PREFIX: optional prefix for the run command (e.g., "cd /path && /workspace/"
# to change cwd while keeping the binary path absolute). Empty by default.
full_bin = "${SKILLSHARE_UI_EXEC_PREFIX}./tmp/skillshare ui --no-open --host ${SKILLSHARE_UI_HOST:-localhost} ${SKILLSHARE_UI_FLAGS}"
delay = 1000 # ms – debounce rapid saves
kill_delay = 500 # ms – graceful shutdown before SIGKILL
send_interrupt = true # SIGINT first (graceful shutdown)
include_ext = ["go"]
include_dir = ["cmd", "internal"]
exclude_dir = ["ui", "website", "tests", "scripts", "docker", "skills", "video", "tmp", ".devcontainer", ".github"]
exclude_regex = ["_test\\.go$"]
log = "build-errors.log"
[log]
main_only = true
[misc]
clean_on_exit = true