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
The
apkomodule extension translatesapko.lock.jsoninto repositories (much likerules_jsdoes withpnpm-lock.yaml) which is a reproducible operation. TheMODULE.bazel.locklockfile can be trimmed by returningmodule_ctx.extension_metadata(...)withreproducible = 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