          (format "%S is configured in the dotfile." pkg-name)))
        ((eq 'local (oref pkg :location))
         (let* ((owner (object-assoc (oref pkg :owner)
-                                    :name configuration-layer-layers))
+                                    :name configuration-layer--layers))
                (dir (oref owner :dir)))
           (push (format "%slocal/%S/" dir pkg-name) load-path)
           ;; TODO remove extensions in 0.105.0

  (interactive)
  (let* ((dependencies (configuration-layer//get-all-packages-dependencies))
         (implicit-packages (configuration-layer//get-implicit-packages
                             packages))
         (orphans (configuration-layer//filter-used-themes
                   (configuration-layer//get-orphan-packages implicit-packages
                                                             dependencies)))
         (orphans-count (length orphans)))
    ;; (message "dependencies: %s" dependencies)
    ;; (message "implicit: %s" implicit-packages)

      (setq dotspacemacs-configuration-layers
            ;; spacemacs is contained in configuration-layer-paths
            (ht-keys configuration-layer-paths))
    (setq configuration-layer--layers
          (list (configuration-layer/make-layer 'spacemacs))))
  (setq configuration-layer--layers
        (append (configuration-layer//make-layers
                 dotspacemacs-configuration-layers)
                configuration-layer--layers)))

(defun configuration-layer//set-layers-variables (layers)
  "Set the configuration variables for the passed LAYERS."
