Skip to content

fix(uninstall): fix issues with uninstalling manifest-only drivers - #5

Merged
amoeba merged 11 commits into
columnar-tech:mainfrom
amoeba:feat/manifest-only-drivers
Sep 16, 2025
Merged

amoeba merged 11 commits into
columnar-tech:mainfrom
amoeba:feat/manifest-only-drivers

Conversation

@amoeba

@amoeba amoeba commented Sep 9, 2025 •

Copy link
Copy Markdown
Member

This primarily fixes a bug with dbc uninstall for manifest-only drivers where the extra folder we install alongside the driver manifest wasn't being removed. I also factored out the common logic related to removing the driver shared library and added some defensive checks to limit the impact of a maliciously-crafted driver manifest.

Ref #15

Comment thread config/config.go Resolved
Comment thread config/config.go Resolved
@amoeba
amoeba requested a review from zeroshade September 15, 2025 19:56
@amoeba

amoeba commented Sep 15, 2025

Copy link
Copy Markdown
Member Author

Ready for a review. This now uses Clean on the path and I was able to test the new logic in config.UninstallDriverShared.

@zeroshade

Copy link
Copy Markdown
Member

Looks like there's still issues with the windows tests

@amoeba

amoeba commented Sep 16, 2025

Copy link
Copy Markdown
Member Author

I'm seeing if I can figure out what's going on in CI by surfacing the error (which I should have done originally).

@amoeba

amoeba commented Sep 16, 2025

Copy link
Copy Markdown
Member Author

Hrm,

Failed to rename sidecar folder. Something is wrong with this test: rename C:\Users\RUNNER1\AppData\Local\Temp\TestSubcommandsTestUninstallManifestOnlyDriver3321879900\001\test-driver-manifest-only C:\Users\RUNNER1\AppData\Local\Temp\TestSubcommandsTestUninstallManifestOnlyDriver3321879900\001\test-driver-manifest-only_windows_amd64_v1.0.0: The system cannot find the file specified.

I may need to log into my Windows machine to see if installing a manifest-only driver works on Windows.

@amoeba

amoeba commented Sep 16, 2025

Copy link
Copy Markdown
Member Author

Looks good now @zeroshade.

Comment thread config/config.go Resolved
Comment thread cmd/dbc/uninstall_test.go Resolved
@zeroshade
zeroshade dismissed their stale review September 16, 2025 20:45

incorrect suggestions

@amoeba
amoeba merged commit 923adf0 into columnar-tech:main Sep 16, 2025
@amoeba

amoeba commented Sep 16, 2025

Copy link
Copy Markdown
Member Author

Thanks for the review @zeroshade!

zeroshade added a commit that referenced this pull request Apr 17, 2026
This primarily fixes a bug with dbc uninstall for manifest-only drivers
where the extra folder we install alongside the driver manifest wasn't
being removed. I also factored out the common logic related to removing
the driver shared library and added some defensive checks to limit the
impact of a maliciously-crafted driver manifest.

Ref #15

---------

Co-authored-by: Matt Topol <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants