Unable to install from package

hi, i just following “install from source” try to run the gitea

git checkout v1.22.6
TAGS=“bindata” make build
./gitea web

but there are errors, i need to add some security headers into the code so i will not use install from package



webma@DESKTOP-2GG3S2J:~/hki/src/gitea/gitea$ ./gitea web2025/09/30 09:38:31 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 95332025/09/30 09:38:31 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.22.6 built with GNU Make 4.2.1, go1.25.1 : bindata2025/09/30 09:38:31 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod2025/09/30 09:38:31 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /home/webma/hki/src/gitea/gitea/gitea2025/09/30 09:38:31 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /home/webma/hki/src/gitea/gitea2025/09/30 09:38:31 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /home/webma/hki/src/gitea/gitea/custom2025/09/30 09:38:31 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /home/webma/hki/src/gitea/gitea/custom/conf/app.ini2025/09/30 09:38:31 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run install pagefatal error: concurrent map read and map write

goroutine 1 [running]:internal/runtime/maps.fatal({0x365c1c9?, 0xc003ac4e7e?})/usr/local/go/src/runtime/panic.go:1046 +0x18(*LoggerImpl).Log (0xc000c7f810, 0x2, 0x3, {0x3580fe2, 0x11}, {0xc002bb7758, 0x3, 0x2dffa00?})/home/webma/hki/src/gitea/gitea/modules/log/logger_impl.go:205 +0x291 (0x0?, 0x3, {0x3580fe2, 0x11}, {0xc002bb7758, 0x3, 0x3})/home/webma/hki/src/gitea/gitea/modules/log/logger_global.go:21 +0x85

/home/webma/hki/src/gitea/gitea/modules/log/logger_global.go:41 ({0x477bd60, 0xc0008c7080}, 0x0)/home/webma/hki/src/gitea/gitea/cmd/web.go:304 +0x33e

/home/webma/hki/src/gitea/gitea/cmd/web.go:137 +0xe5

/home/webma/hki/src/gitea/gitea/cmd/web.go:251 +0x285

/home/webma/hki/src/gitea/gitea/cmd/main.go:111 +0x1e3github.com/urfave/cli/v2.(*Command).Run(0x65ff660, 0xc00091b6c0, {0xc000a8fb90, 0x1, 0x1})/home/webma/go/pkg/mod/github.com/urfave/cli/v2@v2.27.2/command.go:276 +0x7c2github.com/urfave/cli/v2.(*Command).Run(0xc0015ff8c0, 0xc00091b400, {0xc0000500a0, 0x2, 0x2})/home/webma/go/pkg/mod/github.com/urfave/cli/v2@v2.27.2/command.go:269 +0xa30github.com/urfave/cli/v2.(*App).RunContext(0xc0007d6c00, {0x4798978, 0x6a06940}, {0xc0000500a0, 0x2, 0x2})/home/webma/go/pkg/mod/github.com/urfave/cli/v2@v2.27.2/app.go:333 +0x58b

/home/webma/go/pkg/mod/github.com/urfave/cli/v2@v2.27.2/app.go:307 (0xc0007d6c00, {0xc0000500a0?, 0xc001a00750?, 0xc000002380?})/home/webma/hki/src/gitea/gitea/cmd/main.go:172 +0x39main.main()/home/webma/hki/src/gitea/gitea/main.go:46 +0x79

goroutine 18 [select]:

/home/webma/go/pkg/mod/github.com/blevesearch/bleve_index_api@v1.1.10/analysis.go:46created by github.com/blevesearch/bleve_index_api.NewAnalysisQueue in goroutine 1/home/webma/go/pkg/mod/github.com/blevesearch/bleve_index_api@v1.1.10/analysis.go:38 +0xa5

goroutine 19 [select]:

/home/webma/go/pkg/mod/github.com/blevesearch/bleve_index_api@v1.1.10/analysis.go:46created by github.com/blevesearch/bleve_index_api.NewAnalysisQueue in goroutine 1/home/webma/go/pkg/mod/github.com/blevesearch/bleve_index_api@v1.1.10/analysis.go:38 +0xa5

goroutine 20 [select]:

/home/webma/go/pkg/mod/github.com/blevesearch/bleve_index_api@v1.1.10/analysis.go:46created by github.com/blevesearch/bleve_index_api.NewAnalysisQueue in goroutine 1/home/webma/go/pkg/mod/github.com/blevesearch/bleve_index_api@v1.1.10/analysis.go:38 +0xa5

goroutine 21 [select]:

/home/webma/go/pkg/mod/github.com/blevesearch/bleve_index_api@v1.1.10/analysis.go:46created by github.com/blevesearch/bleve_index_api.NewAnalysisQueue in goroutine 1/home/webma/go/pkg/mod/github.com/blevesearch/bleve_index_api@v1.1.10/analysis.go:38 +0xa5

goroutine 28 [select]:(*EventWriterBaseImpl).Run (0xc000971920, {0x4799b88, 0xc0008517a0})/home/webma/hki/src/gitea/gitea/modules/log/event_writer_base.go:81 +0x279

/home/webma/hki/src/gitea/gitea/modules/log/event_writer_base.go:157 +0xa5created by  in goroutine 1/home/webma/hki/src/gitea/gitea/modules/log/event_writer_base.go:153 +0x191

goroutine 10 [syscall]:os/signal.signal_recv()/usr/local/go/src/runtime/sigqueue.go:152 +0x29os/signal.loop()/usr/local/go/src/os/signal/signal_unix.go:23 +0x13created by os/signal.Notify.func1.1 in goroutine 29/usr/local/go/src/os/signal/signal.go:152 +0x1f

goroutine 29 [select]:(*Manager).handleSignals (0xc000aaaa00, {0x4798be0, 0xc000904000})/home/webma/hki/src/gitea/gitea/modules/graceful/manager_unix.go:125 +0x2aecreated by (*Manager).start in goroutine 1/home/webma/hki/src/gitea/gitea/modules/graceful/manager_unix.go:55 +0x19c

goroutine 30 [sync.Cond.Wait]:sync.runtime_notifyListWait(0xc000aaaac0, 0x0)/usr/local/go/src/runtime/sema.go:606 +0x159sync.(*Cond).Wait(0x0?)/usr/local/go/src/sync/cond.go:71 +0x73

/home/webma/hki/src/gitea/gitea/modules/graceful/manager_unix.go:79 +0x72created by (*Manager).start in goroutine 1/home/webma/hki/src/gitea/gitea/modules/graceful/manager_unix.go:59 +0x206