Function: bazel-find-project
bazel-find-project is a natively compiled function defined in
bazel.el.
Signature
(bazel-find-project DIRECTORY)
Documentation
Find a Bazel repository for the given DIRECTORY.
Return nil if outside a Bazel repository or a project instance for
the containing repository. This function is suitable for
‘project-find-functions’.
Source Code
;; Defined in /nix/store/ws8pkszjvcad1rgzqw6wja7qxacylfhn-emacs-packages-deps/share/emacs/site-lisp/elpa/bazel-20261002.1510/bazel.el
(defun bazel-find-project (directory)
"Find a Bazel repository for the given DIRECTORY.
Return nil if outside a Bazel repository or a project instance for
the containing repository. This function is suitable for
‘project-find-functions’."
(declare (ftype (function (string) (or bazel-workspace null))))
(cl-check-type directory string)
(when-let* ((root (bazel--repository-root directory)))
(make-bazel-workspace :root root)))