Skip to content

Create dedicated way of upgrading drivers in the lockfile #196

Description

@amoeba

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 editing
version = 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.

Activity

  1. added theissue type on Nov 10, 2025
  2. amoeba commented on Nov 10, 2025

    @amoeba
    MemberAuthor

    For context, this idea came up as part of renovatebot/renovate#39207.

  3. ianmcook commented on Nov 10, 2025

    @ianmcook
    Member

    If we followed uv's semantics, it'd be:

    • dbc lock --upgrade to upgrade all drivers
    • 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.

  4. ianmcook commented on Nov 10, 2025

    @ianmcook
    Member

    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.

  5. eitsupi commented on Nov 10, 2025

    @eitsupi
    Member
  6. eitsupi commented on Nov 11, 2026

    @eitsupi
    Member

    Since lockfile v2 has been implemented, I will work on this.

  7. added a commit that references this issue on Dec 2, 2026
    f8e42c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions