Skip to content

Improve support for manifest-only drivers #15

Closed

Description

@amoeba

We want the ADBC ecosystem and tools like dbc to support Driver Manifests where the driver DLL is itself an ADBC driver and is managed externally. So far this is just the case for DuckDB.

A "manifest-only" driver package would have a manifest that looks like this,

name = "Some Driver"

# ...

[Driver]
entrypoint = "some_entry"
shared = "somedll"

Right now, when dbc tries to uninstall such a manifest, config.DeleteDriver fails because it tries to remove "somedll":

failed to uninstall driver: error removing driver found: remove somedll: no such file or directory

We need to make this work while not breaking anything for other drivers.

Activity

  1. amoeba commented on Aug 19, 2025

    @amoeba
    MemberAuthor

    Technically, from the above TOML, it doesn't seem like it's possible to differentiate between a manifest-only driver and one with a DLL. Is it fine to just try to remove Driver.shared and continue even if it fails?

  2. zeroshade commented on Aug 19, 2025

    @zeroshade
    Member

    We only attempt to delete the Driver.shared if the source is dbc. Maybe we add a special suffix to the source to denote a manifest-only driver that was installed by dbc?

  3. ianmcook commented on Aug 19, 2025

    @ianmcook
    Member

    We only attempt to delete the Driver.shared if the source is dbc.

    Yep, but that's the source of the dbc-installed driver, which in the case of DuckDB is different from the actual source of the shared library that Driver.shared points to.

    Maybe we add a special suffix to the source to denote a manifest-only driver that was installed by dbc?

    What if we stick another source = 'dbc' under [Driver] or [Driver.shared] in our manifests (except the DuckDB one), and only attempt to delete the shared library on uninstall if that's set?

  4. zeroshade commented on Aug 19, 2025

    @zeroshade
    Member

    Not sure how I feel about that one. Though, I forget, are we planning on having dbc somehow download DuckDB for the user? Or just use the post install message for now?

  5. amoeba commented on Aug 20, 2025

    @amoeba
    MemberAuthor

    We aren't planning on having dbc do any downloading or running any post-install commands. Just messages. At least until enough users give us feedback that we should do more.

    Is there a downside to just ignoring errors if removing Driver.shared fails? So we'd only try to remove the Driver.shared dir if the source is dbc but we'd only fail the uninstall if removing the manifest TOML fails, not Driver.shared?

  6. ianmcook commented on Aug 20, 2025

    @ianmcook
    Member

    Is there a downside to just ignoring errors if removing Driver.shared fails? So we'd only try to remove the Driver.shared dir if the source is dbc but we'd only fail the uninstall if removing the manifest TOML fails, not Driver.shared?

    My worry is: what if it "succeeded" and deleted something?

  7. amoeba commented on Aug 20, 2025

    @amoeba
    MemberAuthor

    We could still fail if there was an error during delete but we'd just not fail if there was nothing to delete.

    To add onto this, I just ran into this while installing a manifest-only drivers. When we install, we verify the included signature and fail if we can't find one, see https://github.com/amoeba/dbc/blob/c06c0bfa0a43e5ffa2caf50d4c6a7cd1afe611fd/cmd/dbc/install.go#L79.

    A manifest-only driver wouldn't have a signature, how do we allow installation of a manifest-only driver without one?

  8. ianmcook commented on Aug 20, 2025

    @ianmcook
    Member

    Is there a straightforward way to bypass that if the download from the CDN does not contain a shared library file?

  9. transferred this issue fromon Sep 9, 2025
  10. added this to the 0.0.1 milestone on Sep 12, 2025
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions