bazel-contrib / bcr-ui

Website for the Bazel Central Registry
https://registry.bazel.build
Apache License 2.0
14 stars 9 forks source link

Fix submission commit detection caching being too agressive #141

Closed hobofan closed 4 months ago

hobofan commented 4 months ago

FIXES #140

pMemoize only uses the first argument to cache by default, so we only determined one submisssion commit for a version of a module and then re-used the same commit for all versions of the module.

This adjusts it to use the full arguments (module name + module version) as the cache key.