fix: use zstd.WithLowerEncoderMem for generate-bindata (#8172)

Closes forgejo/forgejo#8165

The test that matters will happen on the next integration build.

A manual test was run in the integration repository:

* commit 82c419a85e
* run that builds bindata for v6 https://codeberg.org/forgejo-integration/forgejo/actions/runs/10219#jobstep-9-5286

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8172
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
Earl Warren 2025-06-12 23:23:37 +02:00 committed by Earl Warren
parent 563d8f1564
commit 402a85a9b6

View file

@ -113,7 +113,7 @@ type direntry struct {
}
func generate(fsRoot fs.FS, packageName string, globalTime bool, output io.Writer) error {
enc, err := zstd.NewWriter(nil, zstd.WithEncoderLevel(zstd.SpeedBestCompression))
enc, err := zstd.NewWriter(nil, zstd.WithLowerEncoderMem(true))
if err != nil {
return err
}