1
1
mirror of https://github.com/go-gitea/gitea.git synced 2026-03-01 21:36:32 +01:00
gitea/build
silverwind b9d323c3d8
Replace google/go-licenses with custom generation (#36575)
Rewrite `build/generate-go-licenses.go` to use `go list -m -json all`
and read license files directly from the Go module cache instead of
relying on the buggy `google/go-licenses` tool.

This removes the need for CGO, GOOS=linux, and the intermediate temp
directory, while being like 100 times faster than before:

```
$ rm assets/go-licenses.json && time make assets/go-licenses.json
go run build/generate-go-licenses.go assets/go-licenses.json
make assets/go-licenses.json  0.21s user 0.22s system 173% cpu 0.247 total

---------

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 04:13:26 +00:00
..
generate-bindata.go Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00
generate-emoji.go Update emoji data for Unicode 16 (#36596) 2026-02-12 21:39:36 +00:00
generate-gitignores.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
generate-go-licenses.go Replace google/go-licenses with custom generation (#36575) 2026-02-18 04:13:26 +00:00
test-env-check.sh Prepare and check test env during CI (#17725) 2021-11-19 13:58:34 +08:00
test-env-prepare.sh Prepare and check test env during CI (#17725) 2021-11-19 13:58:34 +08:00
update-locales.sh Use flatten translation keys (#36225) 2025-12-25 12:51:33 -08:00