Skip to content

fix: implement RALPH_CONFIG env var override - #23

Merged
mad01 merged 1 commit into
mainfrom
alexander/mad-78-fix-implement-ralph_config-env-var-documented-but-missing
Jun 23, 2026
Merged

fix: implement RALPH_CONFIG env var override#23
mad01 merged 1 commit into
mainfrom
alexander/mad-78-fix-implement-ralph_config-env-var-documented-but-missing

Conversation

@mad01

@mad01 mad01 commented Jun 23, 2026

Copy link
Copy Markdown
Owner

getDefaultConfigPathInternal now checks RALPH_CONFIG before the XDG path. If set, the path is expanded and the file must exist — otherwise it returns an error rather than silently falling back to the default. This makes the documented RALPH_CONFIG override actually work.

Closes MAD-78

CLAUDE.md documented RALPH_CONFIG for overriding the config path, but
getDefaultConfigPathInternal only checked XDG_CONFIG_HOME. Add RALPH_CONFIG
as the first check: if set, expand and require the file to exist, failing
loudly rather than silently falling back to the default.

Closes MAD-78
@mad01
mad01 merged commit 37f70cd into main Jun 23, 2026
mad01 added a commit that referenced this pull request Jul 3, 2026
…e host filter

- GitPull now always captures stderr to a buffer (teeing to os.Stderr when
  verbose), so the 'no tracking information' origin/<branch> fallback fires in
  verbose mode too (#22).
- Recipe override sections for names that aren't valid bare TOML keys (e.g.
  'web.tools') are now written as quoted keys, so the override is readable
  instead of parsed as nested tables (#23).
- applyRecipeHostFilter now propagates recipe hosts to tool config files; env
  remains a flat map and is documented as not host-taggable (#24).
mad01 added a commit that referenced this pull request Jul 3, 2026
CLAUDE.md documented RALPH_CONFIG for overriding the config path, but
getDefaultConfigPathInternal only checked XDG_CONFIG_HOME. Add RALPH_CONFIG
as the first check: if set, expand and require the file to exist, failing
loudly rather than silently falling back to the default.

Closes MAD-78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant