mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-10-31 22:58:59 +01:00
d99d2e3ef4
So it happened to me multiple times that air leaves zombie processes after termination. I think ultimately it's some kind of bug in air, but we can work around. The change in the delay is unrelated to the zombie processes but seems to help a bit with duplicate changes resulting in duplicate `make generate` as seen here: <img width="424" alt="Screenshot 2024-04-14 at 17 05 47" src="https://github.com/go-gitea/gitea/assets/115237/6dd1d787-6be3-4fb2-8b0b-cd711c281793"> --------- Co-authored-by: delvh <dev.lh@web.de> (cherry picked from commit 994920c677b04a720726d982e4d6212664b82a43)
26 lines
798 B
TOML
26 lines
798 B
TOML
root = "."
|
|
tmp_dir = ".air"
|
|
|
|
[build]
|
|
pre_cmd = ["killall -9 gitea 2>/dev/null || true"] # kill off potential zombie processes from previous runs
|
|
cmd = "make --no-print-directory backend"
|
|
bin = "gitea"
|
|
delay = 2000
|
|
include_ext = ["go", "tmpl"]
|
|
include_file = ["main.go"]
|
|
include_dir = ["cmd", "models", "modules", "options", "routers", "services"]
|
|
exclude_dir = [
|
|
"models/fixtures",
|
|
"models/migrations/fixtures",
|
|
"modules/avatar/identicon/testdata",
|
|
"modules/avatar/testdata",
|
|
"modules/git/tests",
|
|
"modules/migration/file_format_testdata",
|
|
"modules/markup/tests/repo/repo1_filepreview",
|
|
"routers/private/tests",
|
|
"services/gitdiff/testdata",
|
|
"services/migrations/testdata",
|
|
"services/webhook/sourcehut/testdata",
|
|
]
|
|
exclude_regex = ["_test.go$", "_gen.go$"]
|
|
stop_on_error = true
|