 
 ;;;; Functions from other packages
 
+;; `finder-inf'
+(defvar package--builtins)
+
+;; `magit'
+(declare-function magit-status-internal "magit-status")
+
 ;; `package'
+(defvar package-selected-packages)
 (declare-function package--ensure-init-file "package")
 (declare-function package--save-selected-packages "package")
-
-;; `magit'
-(declare-function magit-status-internal "magit-status")
 
 ;; `use-package'
 (defvar use-package-defaults)


;;;;; Recipe conversion

(cl-defun straight--convert-recipe (melpa-style-recipe &optional cause)
  "Convert a MELPA-STYLE-RECIPE to a normalized straight.el recipe.
Recipe repositories specified in `straight-recipe-repositories'

                     ;; to all known sources.
                     melpa-style-recipe nil cause)
                    (progn
                      ;; Check if the package is considered as
                      ;; "built-in". If so, it's not an issue if we
                      ;; can't find it in any recipe repositories.
                      (require 'finder-inf)
                      (if (assq melpa-style-recipe package--builtins)
                          (cl-return-from straight--convert-recipe)
                        (error (concat "Could not find package %S "
                                       "in recipe repositories: %S")
