Function: bazel--central-registry
bazel--central-registry is a natively compiled function defined in
bazel.el.
Signature
(bazel--central-registry)
Documentation
Return the contents of the Bazel Central Registry.
Return a hashtable mapping package names to their most recent versions. Use a cached value if the cache is not stale, and fetch the contents from the registry otherwise.
Source Code
;; Defined in /nix/store/ws8pkszjvcad1rgzqw6wja7qxacylfhn-emacs-packages-deps/share/emacs/site-lisp/elpa/bazel-20261002.1510/bazel.el
(defun bazel--central-registry ()
"Return the contents of the Bazel Central Registry.
Return a hashtable mapping package names to their most recent versions.
Use a cached value if the cache is not stale, and fetch the contents
from the registry otherwise."
(declare (ftype (function () hash-table)))
(let ((cache (multisession-value bazel--central-registry)))
(if (and cache (time-less-p (time-subtract nil 3600)
(bazel--central-registry-last-update cache)))
(bazel--central-registry-table cache)
(let ((table (bazel--fetch-central-registry)))
(setf (multisession-value bazel--central-registry)
(bazel--make-central-registry (current-time) table))
table))))