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 should have a unit test to cover the following case:
At time point t_0, the driver index has driver foo at version 1.0.0. The user installs foo with dbc install foo and they get 1.0.0 installed at foo.toml. At time point t_1, the driver index has foo version 1.0.0 and 1.1.0. The user re-runs dbc install foo. What should happen?
I think,
dbc should replace foo.toml with a fresh foo.toml
dbc should not delete the old foo_{$platform}_v1.0.0 folder
When finished, the drivers dir should have this structure,
Looks like we currently do delete the old foo_${platform}_v1.0.0 folder. So if we want to keep the old one around, then we need to do some feature work. We should also make sure that uninstall deletes all versions, right?
another question: if we're going to leave the old version, then shouldn't we first check if that exists before we go re-downloading the old version on an install? That seems a bit dangerous. We should only leave the old version if it wasn't installed with dbc (source != 'dbc'), right?
We should only leave the old version if it wasn't installed with dbc (source != 'dbc'), right?
Yeah, and I think I have changed my mind on whether we should or shouldn't remove the old version on reinstall. If we leave the old version in place, the user has to work much harder to use it because there's no manifest for it. So it's better to remove it and not leave it hanging around.
Activity
amoeba commentedon Sep 15, 2025
Note: This unit test, once written, should currently pass so I don't think there's any feature work here.
zeroshade commentedon Sep 18, 2025
Looks like we currently do delete the old
foo_${platform}_v1.0.0folder. So if we want to keep the old one around, then we need to do some feature work. We should also make sure that uninstall deletes all versions, right?zeroshade commentedon Sep 18, 2025
another question: if we're going to leave the old version, then shouldn't we first check if that exists before we go re-downloading the old version on an install? That seems a bit dangerous. We should only leave the old version if it wasn't installed with dbc (source != 'dbc'), right?
amoeba commentedon Sep 19, 2025
Yeah, and I think I have changed my mind on whether we should or shouldn't remove the old version on reinstall. If we leave the old version in place, the user has to work much harder to use it because there's no manifest for it. So it's better to remove it and not leave it hanging around.
zeroshade commentedon Sep 19, 2025
cool, then we can close this as solved by #47 then which ads the unit test and confirms that the previous one is cleaned up
Merge pull request #38 from columnar-tech/update-to-match-behavior