Function: bazel--canonical
bazel--canonical is a natively compiled function defined in bazel.el.
Signature
(bazel--canonical REPOSITORY PACKAGE TARGET)
Documentation
Return a canonical label.
REPOSITORY is either nil (referring to the current repository), the empty string (referring to the main repository), or an external repository name. PACKAGE and TARGET should both be strings. Return either @REPOSITORY//PACKAGE:TARGET or //PACKAGE:TARGET.
Source Code
;; Defined in /nix/store/ws8pkszjvcad1rgzqw6wja7qxacylfhn-emacs-packages-deps/share/emacs/site-lisp/elpa/bazel-20261002.1510/bazel.el
(defun bazel--canonical (repository package target)
"Return a canonical label.
REPOSITORY is either nil (referring to the current repository), the
empty string (referring to the main repository), or an external
repository name. PACKAGE and TARGET should both be strings. Return
either @REPOSITORY//PACKAGE:TARGET or //PACKAGE:TARGET."
(declare (ftype (function ((or null string) string string) string))
(side-effect-free t))
(cl-check-type repository (or null string))
(cl-check-type package string)
(cl-check-type target string)
(concat (and repository (concat "@" repository)) "//" package ":" target))