Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set
CI / tests (pull_request) Successful in 6m34s

This commit is contained in:
2026-12-03 18:56:28 +01:00
parent 20c83f861f
commit 1ca2c8efe0
142 changed files with 1095 additions and 933 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
from collections.abc import Mapping
import pathlib
from failure import Failure
@@ -6,9 +7,9 @@ from project_config.main import located
from plan.goals_file import section
def read_premises(root: str, home: pathlib.Path) -> str | Failure:
def read_premises(root: str, home: pathlib.Path, env: Mapping[str, str]) -> str | Failure:
"""Where the goals file is kept, then its ## Goals and ## Audience. The goals file is the one that the config of root's checkout, under home, names: a file or a Jira epic's description. A Failure where no config names the checkout, or the goals file cannot be read, is missing or empty, lacks a section, holds one twice or leaves one empty."""
config = located(root, home)
config = located(root, home, env)
if isinstance(config, Failure):
return Failure(f"{config.reason} - no premises.")
goals = goals_store(config)