Files
core/paths/errors.go
T

16 lines
779 B
Go
Raw Normal View History

package paths
import "errors"
// ErrRuntimeDirUnavailable is returned by Resolver.RuntimeDir when no
// runtime directory override is set and the platform's native runtime
// directory mechanism (XDG_RUNTIME_DIR on Unix) is not available. Per
// AGENTS.md/spec section 8, this must never be silently papered over with
// a fabricated fallback location -- callers decide what to do (fall back
// to a temp dir themselves, error out, ...).
var ErrRuntimeDirUnavailable = errors.New("paths: runtime directory not available")
// ErrNoHomeDirectory is returned when a computation needs the user's home
// directory (HOME on Unix, USERPROFILE on Windows) and it is not set in
// the Resolver's Environment.
var ErrNoHomeDirectory = errors.New("paths: home directory not available")