wxiaoguang
94fde46151
Make bindata static build parse builtin templates correctly ( #24003 )
...
Close #24002
Two problems before:
1. The `log.Fatal` is missing after these `wrapFatal` calls, so the
error is not shown to users.
2. `GetTemplateAssetNames` has different behaviors for local files and
builtin assets, for builtin assets, it also returns directories, so we
need to check the extension again.
I have tested with `TAGS="bindata sqlite sqlite_unlock_notify" make
build && ./gitea` , it works well now. Before, the server responds
internal server error (because it doesn't complete the template parsing)
2023-04-08 21:56:50 +08:00
..
2023-04-07 20:12:10 +08:00
2023-02-06 09:49:21 +08:00
2022-11-27 18:20:29 +00:00
2023-03-04 10:12:02 +08:00
2023-02-22 14:21:46 -05:00
2023-04-07 21:25:49 +08:00
2023-03-08 11:57:05 -06:00
2023-03-24 18:35:38 +08:00
2022-11-27 18:20:29 +00:00
2023-04-08 21:15:22 +08:00
2023-03-05 22:59:05 +01:00
2023-03-23 20:30:28 +08:00
2023-01-05 13:58:51 +02:00
2022-12-29 10:57:15 +08:00
2022-11-27 18:20:29 +00:00
2023-04-07 14:42:43 +08:00
2023-02-15 21:37:34 +08:00
2022-11-27 18:20:29 +00:00
2023-01-29 09:49:51 -06:00
2023-03-14 16:09:01 -04:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-03-08 15:40:04 -05:00
2023-03-29 14:32:26 +08:00
2023-03-28 22:23:23 -04:00
2023-01-26 22:45:49 -06:00
2022-12-02 22:14:57 +08:00
2023-03-08 17:31:27 +08:00
2023-03-28 11:10:24 -04:00
2023-02-03 18:11:48 -05:00
2023-04-03 16:02:57 +08:00
2022-11-27 18:20:29 +00:00
2023-02-08 19:54:01 +02:00
2023-02-18 21:17:39 +02:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-01-31 09:45:19 +08:00
2023-03-21 16:02:49 -04:00
2023-04-02 17:53:37 +08:00
2022-12-02 22:14:57 +08:00
2022-11-27 18:20:29 +00:00
2023-03-29 14:32:26 +08:00
2023-02-03 18:11:48 -05:00
2023-02-11 08:39:50 +08:00
2022-11-27 18:20:29 +00:00
2023-03-31 11:35:48 -04:00
2023-02-28 17:55:43 -05:00
2022-11-27 18:20:29 +00:00
2023-01-31 10:08:05 +01:00
2022-11-27 18:20:29 +00:00
2023-04-07 11:21:02 -04:00
2023-02-22 14:21:46 -05:00
2023-04-07 18:11:24 +02:00
2023-03-29 08:41:45 -05:00
2022-12-30 23:31:00 +08:00
2022-11-27 18:20:29 +00:00
2023-03-28 11:10:24 -04:00
2023-04-04 21:35:31 +08:00
2023-03-21 13:39:27 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-04-08 21:56:50 +08:00
2023-04-08 21:15:22 +08:00
2023-03-24 18:35:38 +08:00
2023-04-03 16:02:57 +08:00
2023-02-05 15:29:03 +08:00
2023-03-07 22:40:41 -05:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-04-07 09:39:08 -05:00
2023-02-08 14:44:42 +08:00
2022-11-27 18:20:29 +00:00
2023-02-08 14:44:42 +08:00
2023-01-01 23:23:15 +08:00