summaryrefslogtreecommitdiffstats
path: root/.air.toml (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Reduce `air` verbosity (#31417)silverwind2024-06-231-0/+3
| | | | | | | Make `air` log less. Uses the option added in https://github.com/air-verse/air/pull/367. (cherry picked from commit 1c1545268743d7d4536a5ff2a137af7c255f45c8)
* Kill all gitea processes before air build (#30477)silverwind2024-04-211-1/+2
| | | | | | | | | | | | | | | | | | 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)
* [CHORE] Exclude git repository testdate from watchingGusted2024-04-151-0/+3
| | | | | - Add the _recently_ added Git repository for testdata to the exclusion list of air.
* Exclude `routers/private/tests` from air (#29949)silverwind2024-03-261-1/+10
| | | | | | | | | Exclude this and reformat the toml option to multiline. I wasn't able to get `exclude_regex` to work so it would include a `tests` directory anywhere. I think that option only works on files. (cherry picked from commit 3ee39db34efd532626d710de6717bf3c6255c10e)
* Reduce verbosity of dev commands (#24917)silverwind2023-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | ### Before ``` $ make watch bash build/watch.sh make[1]: Entering directory '/Users/silverwind/git/gitea' make[1]: Entering directory '/Users/silverwind/git/gitea' GITEA_RUN_MODE=dev go run github.com/cosmtrek/air@v1.43.0 -c .air.toml rm -rf public/js public/css public/fonts public/img/webpack public/serviceworker.js NODE_ENV=development npx webpack --watch --progress ``` ### After ``` $ make watch GITEA_RUN_MODE=dev go run github.com/cosmtrek/air@v1.43.0 -c .air.toml NODE_ENV=development npx webpack --watch --progress ```
* Set stop_on_error (#24453)KN4CK3R2023-05-011-0/+1
| | | | | | | | | | | | | | | | | | | | Current air version runs the old binary if the build fails. This restores the old behaviour. ``` ... code.gitea.io/gitea/services/cron code.gitea.io/gitea/routers/web/user/setting code.gitea.io/gitea/routers/web/org make[2]: *** [Makefile:814: gitea] Error 1 make[2]: Leaving directory '/src' failed to build, error: exit status 2 running... 2023/04/30 21:04:11 cmd/web.go:125:runWeb() [I] Starting Gitea on PID: 29153 2023/04/30 21:04:11 cmd/web.go:178:runWeb() [I] Global init ... ``` Reference: https://github.com/cosmtrek/air/pull/336
* Restore air delay of 1000ms (#24290)silverwind2023-04-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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... ```
* Update go tool dependencies, restructure lint targets (#24239)silverwind2023-04-221-1/+2
| | | | | | | | - Update all tool dependencies to latest tag - Remove unused errcheck, it is part of golangci-lint - Include main.go in air - Enable wastedassign again now that it's [generics-compatible](https://github.com/golangci/golangci-lint/pull/3689) - Restructured lint targets to new `lint-*` namespace
* Add more test directory to exclude dir of air, remove watching templates ↵Lunny Xiao2022-12-271-2/+2
| | | | | | | | | | | | | | from air include dir because gitea has internal mechanism (#22246) Since #20218 introduced internal watching template, template watching should be removed from `air`. This will prevent restart the whole server once the template files changed to speed up developing when using `make watch`. To ensure `make watch` will reuse template watching, this PR introduced a new ENV `GITEA_RUN_MODE` to make sure `make watch` will always run in a dev mode of Gitea so that template watching will open. This PR also added more exclude testdata directories.
* Fix `make watch` for generated files (#20794)Gusted2022-08-141-1/+1
| | | | - Don't rebuild the binary when generated files are updated, which is the case by-default when running `make watch`.
* Exclude from watching tests (#17744)Gusted2021-11-221-0/+1
|
* Rename .air.conf to .air.toml (#17360)silverwind2021-10-191-0/+9
As of https://github.com/cosmtrek/air/pull/90, the preferred file extension is .toml. The file format was always toml itself.