Skip to content

fix: warn instead of erroring when there is no config file to inherit from - #1353

Merged
dsherret merged 4 commits into
mainfrom
fix-inherit-warn-no-ancestor-config
Oct 11, 2026
Merged

dsherret merged 4 commits into
mainfrom
fix-inherit-warn-no-ancestor-config

Conversation

@dsherret

Copy link
Copy Markdown
Member

#1340 made it a hard error when a config file specifies "inherit": true and there's no config file in an ancestor directory. That breaks a sub-project whose config file inherits when it's checked out on its own.

This instead logs a warning naming the config file and uses the config on its own (main config, --config, extended local configs, LSP, and editor service). The warning is shown once per process per config file.

The circular inherit error and the "global configuration file cannot specify inherit" error are unchanged.

… from

A config file with "inherit": true is now used on its own with a warning when there's no config file in an ancestor directory, so a sub-project's config file keeps working when checked out standalone. The warning is only shown once per process.
@dsherret
dsherret merged commit 076b20f into main Oct 11, 2026
8 of 22 checks passed
@dsherret
dsherret deleted the fix-inherit-warn-no-ancestor-config branch October 11, 2026 23:22
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