         (setq straight--build-cache build-cache)
         (setq straight--autoloads-cache autoloads-cache)
         (setq straight--eagerly-checked-packages eager-packages)
-        (setq straight--build-cache-text (buffer-string))))))
+        (setq straight--build-cache-text (buffer-string))
+        (when (memq straight-check-for-modifications '(live live-with-find))
+          (when-let ((repos (condition-case _ (straight--directory-files
+                                               (straight--modified-dir))
+                              (file-missing))))
+            ;; Cause live-modified repos to have their packages
+            ;; rebuilt when appropriate. Just in case init is
+            ;; interrupted, however, we won't clear out the
+            ;; `straight--modified-dir' until we write the build cache
+            ;; back to disk.
+            (dolist (package (hash-table-keys straight--build-cache))
+              (ignore-errors
+                (when (member
+                       (plist-get (nth 2 (gethash
+                                          package straight--build-cache))
+                                  :local-repo)
+                       repos)
+                  (remhash package straight--build-cache))))))))))
 
 (defun straight--save-build-cache ()
   "Write data from memory into build-cache.el.

          ;; * GNU find >=4.4.2
          (mtime (straight--format-timestamp)))
      (straight--insert 0 package mtime straight--build-cache))
    (straight--insert 2 package recipe straight--build-cache)
    (setq straight--live-modified-repos
          (delete local-repo straight--live-modified-repos))
    (unless (string-match-p "/" local-repo)
      (condition-case _
          (delete-file (straight--modified-file local-repo))
        (file-error)))))

;;;;; Main entry point


generated at the end of an init from the keys of
`straight--profile-cache'.")

;; See http://stormlightarchive.wikia.com/wiki/Calendar for the
;; schema.
(defvar straight--build-cache-version :shash
