From d7bde65e9e2abae57baf565549f266343a991423 Mon Sep 17 00:00:00 2001 From: Gusted Date: Sun, 14 Aug 2022 22:07:40 +0200 Subject: [PATCH] Fix `make watch` for generated files - 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 4b3297fc1a77..061008830317 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$"]