The apko module extension translates apko.lock.json into repositories (much like rules_js does with pnpm-lock.yaml) which is a reproducible operation. The MODULE.bazel.lock lockfile can be trimmed by returning module_ctx.extension_metadata(...) with reproducible = True.
At time of writing, this would drop an internal lockfile from 11.4k down to 6.7k (4.7k reduction).
Prior art: aspect-build/rules_js#1541