         (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)))

;;;; Feature detection

(defun straight--determine-find-flavor ()
  "Make an educated guess about `straight-find-flavor'.
Return a symbol."
  ;; Avoid at all costs throwing an error, since that would crash the
  ;; loading of straight.el even before any code is run.
  (condition-case _
      (with-temp-buffer
        ;; For reference, this is what "find --version" prints on some
        ;; of the find(1) flavors supported by straight.el.
        ;;
        ;; == GNU find 4.6.0 on Arch Linux ==
        ;;
        ;; find (GNU findutils) 4.6.0
        ;; Copyright (C) 2015 Free Software Foundation, Inc.
        ;; [...]
        ;; exit code 0
        ;;
        ;; == BSD find on macOS 10.11.6
        ;;
        ;; find: illegal option -- -
        ;; usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
        ;; find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
        ;; exit code 1
        ;;
        ;; == BusyBox 1.26.2
        ;;
        ;; find: unrecognized: --version
        ;; BusyBox v1.26.2 (2017-10-04 13:37:41 GMT) multi-call binary.
        ;;
        ;; Usage: find [-HL] [PATH]... [OPTIONS] [ACTIONS]
        ;; [...]
        ;; exit code 1
        (call-process "find" nil '(t t) nil "--version")
        (goto-char (point-min))
        (if (search-forward "BusyBox" nil 'noerror)
            'busybox
          'gnu/bsd))
    ;; Just an educated guess.
    (error 'gnu/bsd)))

(defcustom straight-find-flavor (straight--determine-find-flavor)
  "Symbol identifying what sort of find(1) binary is available.
This affects how the find(1) commands for modification checking
are constructed. The `gnu/bsd' value is compatible with:

* GNU find >=4.4.2
* BSD find shipped with macOS >=10.11

The `busybox' value is compatible with:

* BusyBox >=1.16.2"
  :type '(choice (const :tag "GNU/BSD" gnu/bsd)
                 (const :tag "BusyBox" busybox)))

;;;; Version control



;; See http://stormlightarchive.wikia.com/wiki/Calendar for the
;; schema.
(defvar straight--build-cache-version :kak
  "The current version of the build cache format.
When the format on disk changes, this value is changed, so that
straight.el knows to regenerate the whole cache.")
