Answer prose round 1: 0 🔴, 4 🟡 (0 misread); say what holds under an XDG variable in the decision and the path comments
This commit is contained in:
@@ -12,12 +12,12 @@ RELEASE_ROOT = pathlib.Path(__file__).resolve().parents[2]
|
||||
|
||||
# The Claude home: Claude Code's own folder, with its settings and transcripts. A release is deployed into it, so its CLAUDE.md, rules/ and agents/ are read from it.
|
||||
CLAUDE_HOME = ".claude"
|
||||
# The setup's own folder under each of the two below.
|
||||
# The name of the setup's own folder, in the config home and in the state home.
|
||||
SETUP = "build-release"
|
||||
# Where the config folder is, unless the variable XDG_CONFIG_HOME names another place.
|
||||
# The config home, which holds the config folder, unless the variable XDG_CONFIG_HOME names another.
|
||||
CONFIG_HOME = ".config"
|
||||
XDG_CONFIG_HOME = "XDG_CONFIG_HOME"
|
||||
# Where the state folder is, unless the variable XDG_STATE_HOME names another place.
|
||||
# The state home, which holds the state folder, unless the variable XDG_STATE_HOME names another.
|
||||
STATE_HOME = ".local/state"
|
||||
XDG_STATE_HOME = "XDG_STATE_HOME"
|
||||
|
||||
@@ -40,7 +40,7 @@ def config_folder(env: Mapping[str, str], home: pathlib.Path) -> pathlib.Path:
|
||||
|
||||
def state_folder(env: Mapping[str, str], home: pathlib.Path) -> pathlib.Path:
|
||||
"""The state folder, which the tools write: one folder per tool."""
|
||||
# Every tool keeps its state here, none beside it, so that deleting this folder removes all the state the setup wrote.
|
||||
# Every tool keeps its state here, none beside it in the state home. Only an archive that BUILD_RELEASE_TRANSCRIPTS names is elsewhere.
|
||||
return xdg_folder(env.get(XDG_STATE_HOME), home / STATE_HOME) / SETUP
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user