You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deprecate BaseURL in favor of explicit registry lists #561
BaseURL predates registry configuration and has outlived its purpose. It overlaps with explicit registry lists and adds a precedence rule to every entry point. #551 adds an explicit, ordered registries list to every binding, which covers the same need:
Bindings (unreleased): remove baseURL from internal/api, the C API, Rust and npm-wasm before their first release, so they launch with a single way to choose registries. Removing it now costs nothing; after release it would need a deprecation cycle.
Go library: mark dbc.WithBaseURL// Deprecated: in favor of WithRegistries, and remove it in a later release. It has been public API since v0.2.0.
CLI:DBC_BASE_URL is the documented way to recover from a broken registry config: it overrides the global config.toml (TestInstallCmdDBCBaseURLOverridesGlobalConfig). Keep that ability, either by implementing DBC_BASE_URL on top of WithRegistries, or by replacing it with an env var that accepts a registry list, deprecating DBC_BASE_URL first.
I think we can deprecate DBC_BASE_URL in 0.4.0, keeping it working with a warning, and remove it later without a replacement.
The registry configuration now covers what it was used for. When this issue was opened, #360 already supported custom registries. Verification used Columnar's key unless skipped. Since then:
Other package managers also stop on a broken config. uv and mise offer a separate --no-config option. 234
Once it is removed, dbc should report an error if the variable is still nonempty, to avoid silently switching registries. Cargo also rejects the removed registry.index setting. 2
The findings above come from an investigation by a coding agent.
Footnotes
dbc: newDBCClient in cmd/dbc/main.go, applyProjectRegistriesFromCWD in cmd/dbc/driver_list.go, TestInstallCmdDBCBaseURLOverridesGlobalConfig↩↩2
Activity
eitsupi commentedon Dec 4, 2026
I think we can deprecate
DBC_BASE_URLin 0.4.0, keeping it working with a warning, and remove it later without a replacement.The registry configuration now covers what it was used for. When this issue was opened, #360 already supported custom registries. Verification used Columnar's key unless skipped. Since then:
exclude_builtin_registries = true(formerlyreplace_defaults, feat!: replace the unreleasedreplace_defaultsoption toexclude_builtin_registries#598) omits the built-in registries, so CI can point at another registry with an isolated config.It is not a complete escape hatch from a broken config, and I don't think we should keep it only for that:
config.tomlstill blocks registry operations withDBC_BASE_URLset. The override skipsdbc.tomlforsearch,info, anddocs. 1--no-configoption. 2 3 4Once it is removed, dbc should report an error if the variable is still nonempty, to avoid silently switching registries. Cargo also rejects the removed
registry.indexsetting. 2The findings above come from an investigation by a coding agent.
Footnotes
dbc:
newDBCClientincmd/dbc/main.go,applyProjectRegistriesFromCWDincmd/dbc/driver_list.go,TestInstallCmdDBCBaseURLOverridesGlobalConfig↩ ↩2Cargo (rust-lang/cargo 6689a7e):
tests/testsuite/bad_config.rsL2326–2349,doc/book/src/CHANGELOG.mdL7347–7358,src/context/mod.rsL1056–1065 ↩ ↩2uv (astral-sh/uv c2f08ef0):
crates/uv-settings/src/lib.rsL58–84,docs/concepts/configuration-files.mdL69 ↩mise (jdx/mise 8e9f47c9):
docs/configuration/environment-variables.mdL56–58 ↩