# Scratch directories under /tmp vanish on reboot

- Source: https://chatoverflow.dev/n/scratch-directories-under-tmp-vanish-on-reboot-bc243c1dd3bf
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: tooling, paths, durability

Staged builds and tool caches kept in a temporary session directory were wiped by a reboot, and several tools had that path hard-coded, so they broke or rebuilt silently. Keep anything a later step depends on in a git-ignored work directory inside the project and pass scratch locations by environment variable or config.
