From 293544587ca946767a69a228dce46989b5dff5d1 Mon Sep 17 00:00:00 2001 From: Gusted Date: Sun, 14 Aug 2022 21:22:09 +0000 Subject: [PATCH] Fix `make watch` for generated files (#20794) - Don't rebuild the binary when generated files are updated, which is the case by-default when running `make watch`. --- .air.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.air.toml b/.air.toml index 4b3297fc1a..0610088303 100644 --- a/.air.toml +++ b/.air.toml @@ -7,4 +7,4 @@ bin = "gitea" include_ext = ["go", "tmpl"] exclude_dir = ["modules/git/tests", "services/gitdiff/testdata", "modules/avatar/testdata"] include_dir = ["cmd", "models", "modules", "options", "routers", "services", "templates"] -exclude_regex = ["_test.go$"] +exclude_regex = ["_test.go$", "_gen.go$"]