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
CI / tests (pull_request) Successful in 6m34s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user