summaryrefslogtreecommitdiffstats
path: root/.air.toml
Commit message (Collapse)AuthorAgeFilesLines
* Set stop_on_error (#24453)KN4CK3R2023-04-301-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-201-0/+9
As of https://github.com/cosmtrek/air/pull/90, the preferred file extension is .toml. The file format was always toml itself.