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
Create dedicated way of upgrading drivers in the lockfile #196
Currently, we don't have a good way for users to upgrade the driver versions in dbc.lock. For example, if a user specifies "sqlite" with no version constraint,
$ cat dbc.toml[drivers][drivers.sqlite]
Running dbc sync gives them the latest version of the driver and locks them to the latest version available at the time they ran the command,
$ cat dbc.lock
# This file is automatically @generated by dbc. Not intended for manual editingversion = 1[[drivers]]name = 'sqlite'version = '1.8.0'platform = 'macos_arm64'checksum = '3c495f66d393befbcd1b36fb5fbd9dc41b381e98c4b385680037e14eddb1a5f2'
Right now, if we were to release sqlite 1.9.0, a user would have to remove their dbc.lock to upgrade the lockfile to be locked to it. This is a bit too nuclear IMO and adding a way to upgrade a lockfile without wholesale replacing it would be good.
Some possible ideas for the command,
1 dbc update
2. dbc sync --update
The new subcommand or flag would still respect any version constraints in dbc.toml.
dbc lock --upgrade-driver <driver> to upgrade a single driver
This would require adding a new command dbc lock which would create a lockfile from the driver list like dbc sync does, but without actually installing the drivers like dbc sync does.
Side note: uv lock --upgrade-package lets you specify a package version number, but I'd rather we not do that in dbc lock --upgrade-driver because I'd rather have the driver list be the place where version constraints are specified.
Activity
amoeba commentedon Nov 10, 2025
For context, this idea came up as part of renovatebot/renovate#39207.
ianmcook commentedon Nov 10, 2025
If we followed uv's semantics, it'd be:
dbc lock --upgradeto upgrade all driversdbc lock --upgrade-driver <driver>to upgrade a single driverThis would require adding a new command
dbc lockwhich would create a lockfile from the driver list likedbc syncdoes, but without actually installing the drivers likedbc syncdoes.ianmcook commentedon Nov 10, 2025
Side note:
uv lock --upgrade-packagelets you specify a package version number, but I'd rather we not do that indbc lock --upgrade-driverbecause I'd rather have the driver list be the place where version constraints are specified.eitsupi commentedon Nov 10, 2025
IIUC cargo separates creating the lock file and updating the lock file into different commands.
https://doc.rust-lang.org/cargo/commands/cargo-generate-lockfile.html
https://doc.rust-lang.org/cargo/commands/cargo-update.html
eitsupi commentedon Nov 11, 2026
Since lockfile v2 has been implemented, I will work on this.
feat: add `dbc lock` to update the lock file without installing (#575)
feat: add driver upgrades to lock and sync (#635)