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
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,
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?
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?
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?
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?
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?
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?
Activity
amoeba commentedon Aug 19, 2025
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.sharedand continue even if it fails?zeroshade commentedon Aug 19, 2025
We only attempt to delete the
Driver.sharedif the source isdbc. Maybe we add a special suffix to the source to denote a manifest-only driver that was installed by dbc?ianmcook commentedon Aug 19, 2025
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.sharedpoints to.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?zeroshade commentedon Aug 19, 2025
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?
amoeba commentedon Aug 20, 2025
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
uninstallif removing the manifest TOML fails, not Driver.shared?ianmcook commentedon Aug 20, 2025
My worry is: what if it "succeeded" and deleted something?
amoeba commentedon Aug 20, 2025
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?
ianmcook commentedon Aug 20, 2025
Is there a straightforward way to bypass that if the download from the CDN does not contain a shared library file?
fix(uninstall): fix issues with uninstalling manifest-only drivers (#5)
fix(uninstall): fix issues with uninstalling manifest-only drivers (#5)