Repository navigation
Conversation
Document the configurable driver registry feature: the global config.toml and project dbc.toml [[registries]] syntax, priority ordering across project/global/built-in registries, and the replace_defaults behavior. Split out of #360 so the docs can be reviewed and merged separately.
zeroshade
added a commit
that referenced
this pull request
Jun 12, 2026
Move the driver-registry documentation to a separate PR (#393) so the docs can be reviewed and merged independently, per review feedback.
Member
|
#598 may supersede this. |
zeroshade
pushed a commit
that referenced
this pull request
Nov 23, 2026
…uiltin_registries` (#598) Follow-up to #360. `replace_defaults` is named for replacing the built-in registries, which is no longer needed: with #595 a third-party registry can name its signing key and works like the built-in ones, and with #577 the built-in registries can be reached through a mirror. What the setting does is remove the built-in registries (the public and the private Columnar registry) while keeping the `[[registries]]` entries, so this renames it to `exclude_builtin_registries`. The user config now wins when it excludes them. ```toml exclude_builtin_registries = true [[registries]] url = "https://drivers.example.com" name = "example" ``` - **Semantics:** the built-in registries are excluded when either the user `config.toml` or the project's `dbc.toml` sets `exclude_builtin_registries = true`, and a project's `false` no longer adds them back. The CLI warns when a `dbc.toml` sets `false` that the user config overrides, and keeps that `false` when it writes the file back. The setting only stops dbc from adding the built-in registries to the list; it is not an access control, so a `[[registries]]` entry with a built-in registry's URL is still used. Omitting the key and `false` now mean the same thing in both files. - **Migration:** `replace_defaults` has not been released, so there is no alias. The old key is ignored like any other unknown key, so a `replace_defaults = true` written for a development build has to be renamed or the built-in registries are used again. - **Go API:** `GlobalConfig.ReplaceDefaults` becomes `ExcludeBuiltinRegistries`. `LoadProjectRegistries` returns a `bool` instead of a `*bool`, and `WithProjectRegistries` takes a `bool`, since there is no longer an "inherit" state. - **Docs:** adds a "Configuring registries" section to the driver registry concepts page and a "Registries" section to the driver list reference with the same content as #393, updated for the new key and semantics, so this supersedes #393. For drivers that several registries publish, they describe the behavior since #584 (the highest-priority registry that has a matching version).
This branch was previously deployed
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.
Summary
Documents the configurable driver registry feature:
docs/concepts/driver_registry.md— new "Configuring registries" section covering the globalconfig.tomland projectdbc.toml[[registries]]syntax, the priority order (project → global → built-in defaults), URL dedup/conflict resolution,replace_defaultsbehavior (including the project-level tri-state), and which commands use which registries.docs/reference/driver_list.md— new "Registries" section documenting the[[registries]]entries (url,name) and the top-levelreplace_defaultskey for driver lists.Context
These docs changes were split out of #360 per review feedback ("back out the docs changes before merge and do the docs updates in a separate pr"). The implementation lives in #360; this PR carries only the documentation.
Both sections are tagged
{{ since_version('v0.4.0') }}.