                           (concat
                            "Rebuilding all packages due to "
                            "build cache schema change"))))
-                   ;; Find flavor should be the symbol currently in
-                   ;; use.
-                   (symbolp find-flavor)
-                   (or (eq find-flavor straight-find-flavor)
-                       (prog1 (setq malformed nil)
-                         (message
-                          (concat
-                           "Rebuilding all packages due to "
-                           "change in system find(1) utility"))))
                    ;; Emacs version should be the same as our current
                    ;; one.
                    (stringp last-emacs-version)

        (insert-file-contents-literally
         (straight--build-cache-file))
        (let ((version (read (current-buffer)))
              (find-flavor (read (current-buffer)))
              (last-emacs-version (read (current-buffer)))
              (build-cache (read (current-buffer)))
              (autoloads-cache (read (current-buffer)))

          (print-length nil))
      ;; The version of the build cache.
      (print straight--build-cache-version (current-buffer))
      ;; Record the current Emacs version. If a different version of
      ;; Emacs is used, we have to rebuild all the packages (because
      ;; byte-compiled files cannot necessarily still be loaded).
