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:
@@ -92,6 +92,7 @@ Exit 1, saying why, on any argument other than --worktree, --item with an ID, -h
|
||||
CHUNK_PREFLIGHT_TIMEOUT that is no number of seconds above 0, when git cannot start or finds no
|
||||
checkout or no default branch, or when no config names the checkout or its config cannot be read.
|
||||
"""
|
||||
import os
|
||||
import pathlib
|
||||
import re
|
||||
import subprocess
|
||||
@@ -167,7 +168,7 @@ def preflight(root: pathlib.Path, timeout: float, make: bool, item_id: int | Non
|
||||
if isinstance(default, Failure):
|
||||
return default
|
||||
ref, note = default
|
||||
config = located(str(root), pathlib.Path.home())
|
||||
config = located(str(root), pathlib.Path.home(), os.environ)
|
||||
if isinstance(config, Failure):
|
||||
return config
|
||||
outside = None if config.tracked("plan") else config.plan_label
|
||||
@@ -178,7 +179,7 @@ def preflight(root: pathlib.Path, timeout: float, make: bool, item_id: int | Non
|
||||
# The folder the chunk works in: the item's worktree where one was made or found, else the checkout.
|
||||
worktree = item.worktree.path if isinstance(item, ItemFacts) and isinstance(item.worktree, Worktree) else None
|
||||
# A `checkout:` path lands in the worktree the chunk works in.
|
||||
made = located(str(worktree), pathlib.Path.home()) if worktree else config
|
||||
made = located(str(worktree), pathlib.Path.home(), os.environ) if worktree else config
|
||||
places = (config if isinstance(made, Failure) else made).places
|
||||
left = left_worktrees(root, forge_run) if config.merge == "human" else ()
|
||||
indentation = space_indented(worktree or root, timeout)
|
||||
|
||||
Reference in New Issue
Block a user