Skip to content

docs(rfd): Draft root-qualified extends paths - #1020

Open
JeanMertz wants to merge 1 commit into
mainfrom
rfd-d38-root-qualified-extends
Open

docs(rfd): Draft root-qualified extends paths#1020
JeanMertz wants to merge 1 commit into
mainfrom
rfd-d38-root-qualified-extends

Conversation

@JeanMertz

Copy link
Copy Markdown
Collaborator

config_load_paths resolves against the workspace root while extends resolves against the declaring file's directory. That asymmetry means a higher-precedence config root cannot address a file in the workspace, so settings that must load on every invocation have to be inlined into the user-workspace config, away from the rest of the project's config and outside version control.

The draft proposes an optional root qualifier on an extends entry, naming the config source its path is anchored to. Omitting it preserves today's behavior exactly.

Filed as a draft rather than a proposal for discussion: the same file is already reachable through an external access grant, so this is an ergonomics gap rather than a capability gap, and it overlaps with RFD D35, which coins the same { root, path } shape for a different purpose.

`config_load_paths` resolves against the workspace root while `extends`
resolves against the declaring file's directory. That asymmetry means a
higher-precedence config root cannot address a file in the workspace,
so settings that must load on every invocation have to be inlined into
the user-workspace config, away from the rest of the project's config
and outside version control.

The draft proposes an optional `root` qualifier on an `extends` entry,
naming the config source its path is anchored to. Omitting it preserves
today's behavior exactly.

Filed as a draft rather than a proposal for discussion: the same file
is already reachable through an external access grant, so this is an
ergonomics gap rather than a capability gap, and it overlaps with
RFD D35, which coins the same `{ root, path }` shape for a different
purpose.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
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