summaryrefslogtreecommitdiffstats
path: root/.air.toml
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-04-23 19:26:22 +0200
committerGitHub <noreply@github.com>2023-04-23 13:26:22 -0400
commitedfa3550e41eaf1609b83a3d63849d35b994f04c (patch)
tree17492b2c4794a66d50f2eb8039f27172013c9b02 /.air.toml
parent066af372e34acd40ff6e0d1fb78f48b40c3c7fa9 (diff)
downloadgitea-edfa3550e41eaf1609b83a3d63849d35b994f04c.tar.gz
gitea-edfa3550e41eaf1609b83a3d63849d35b994f04c.zip
Restore air delay of 1000ms (#24290)
https://github.com/cosmtrek/air/pull/343 has changed air's default `delay` from 1000 to 0 and since then, while switching git branches, I notice air starting off multiple parallel build, essentially overloading my machine. Restore previous value of 1000. ```` building... routers/web/org/setting_secrets.go has changed routers/web/org/teams.go has changed building... routers/web/org/teams.go has changed routers/web/repo/setting_secrets.go has changed building... routers/web/org/setting_secrets.go has changed routers/web/repo/setting_secrets.go has changed building... routers/web/shared/secrets/secrets.go has changed routers/web/repo/view.go has changed building... routers/web/repo/view.go has changed routers/web/user/setting/secrets.go has changed building... routers/web/shared/secrets/secrets.go has changed routers/web/user/setting/secrets.go has changed building... routers/web/web.go has changed routers/web/web.go has changed building... services/wiki/wiki_path.go has changed services/wiki/wiki_path.go has changed building... ... Running go generate... Running go generate... Running go generate... Running go generate... Running go generate... Running go generate... Running go generate... Running go generate... Running go generate... Running go generate... Running go generate... Running go generate... Running go generate... Running go generate... Running go generate... ```
Diffstat (limited to '.air.toml')
-rw-r--r--.air.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.air.toml b/.air.toml
index fccd89b46c..71d7623dfb 100644
--- a/.air.toml
+++ b/.air.toml
@@ -4,6 +4,7 @@ tmp_dir = ".air"
[build]
cmd = "make backend"
bin = "gitea"
+delay = 1000
include_ext = ["go", "tmpl"]
include_file = ["main.go"]
include_dir = ["cmd", "models", "modules", "options", "routers", "services"]