feat(config): support config.local.toml machine-local overlay - #24
Merged
mad01 merged 1 commit intoJun 23, 2026
Merged
Conversation
Load an optional config.local.toml next to the main config and merge it on top before validation and recipe processing. The overlay path derives from the resolved config path (config.toml -> config.local.toml, honoring RALPH_CONFIG), and is always optional. Merge is local-wins (not conflict-detected like recipe merging): scalars override when set, map keys merge per-key, slices replace when non-empty. - internal/config/local.go: path derivation + mergeLocalConfig - internal/config/load.go: overlay hook in LoadConfigWithHost - ralph init: gitignore config.local.toml in the dotfiles repo - ralph doctor: report overlay loaded / not found under a Configuration phase - docs/configuration.md: document the overlay and merge semantics Closes MAD-80
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
Load an optional config.local.toml next to the main config and merge it on top before validation and recipe processing. The overlay path derives from the resolved config path (config.toml -> config.local.toml, honoring RALPH_CONFIG), and is always optional. Merge is local-wins (not conflict-detected like recipe merging): scalars override when set, map keys merge per-key, slices replace when non-empty. - internal/config/local.go: path derivation + mergeLocalConfig - internal/config/load.go: overlay hook in LoadConfigWithHost - ralph init: gitignore config.local.toml in the dotfiles repo - ralph doctor: report overlay loaded / not found under a Configuration phase - docs/configuration.md: document the overlay and merge semantics Closes MAD-80
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Loads an optional
config.local.tomlnext to the main config and merges it on top before validation and recipe processing. The overlay path derives from the resolved config path (config.toml→config.local.toml, honoringRALPH_CONFIG) and is always optional.Merge is local-wins (not conflict-detected like recipe merging): scalars override when set, map keys merge per-key, slices replace when non-empty. Bool scalars can only be flipped on from the overlay (a
falsereads as unset).internal/config/local.go— path derivation +mergeLocalConfiginternal/config/load.go— overlay hook inLoadConfigWithHostralph init— gitignoreconfig.local.tomlin the dotfiles reporalph doctor— report overlay loaded / not found under a Configuration phasedocs/configuration.md— document the overlay and merge semanticsCloses MAD-80