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
When dbc first creates the /adbc/drivers directory in a location determined by the environment (ADBC_DRIVER_PATH, VIRTUAL_ENV, or CONDA_PREFIX), create a .gitignore file in it containing * to prevent Git from tracking dbc-installed driver files.
Could you sketch this out a bit more explicitly? I'm not sure I understand. Are you talking about a scenario where $ADBC_DRIVER_PATH is pointing to a directory under a git root? Some steps to show the behavior you're talking about would help.
This is motivated by seeing that uv init does something similar to prevent Git from tracking the package files that it installs in .venv:
$ mkdir myproj
$ cd myproj
$ uv initInitialized project `myproj`
$ ls -a. .. .git .gitignore .python-version main.py pyproject.toml README.md
$ more .gitignore
# Python-generated files__pycache__/*.py[oc]build/dist/wheels/*.egg-info
# Virtual environments.venv
Notice the last line in the .gitignore, which prevents Git from tracking everything in .venv. uv creates this .gitignore file irrespective of whether you're working in a Git repo.
I think it will be relatively common for dbc users to run dbc install or dbc sync to install drivers in project environments tracked by Git. (Either that already are tracked by Git or that will later be tracked by Git.) Adding this .gitignore seems like a good use of a few bytes on disk to prevent the dbc-installed drivers from being tracked when a user does git add . and to prevent noise in git status.
Interesting. I didn't understand at first (reading comprehension) but now see the trick that's involved with your suggestion. uv venv creates ./.venv/.gitignore with * in it. Seems like a solid idea to me.
Activity
amoeba commentedon Sep 23, 2025
Could you sketch this out a bit more explicitly? I'm not sure I understand. Are you talking about a scenario where
$ADBC_DRIVER_PATHis pointing to a directory under a git root? Some steps to show the behavior you're talking about would help.ianmcook commentedon Sep 23, 2025
This is motivated by seeing that
uv initdoes something similar to prevent Git from tracking the package files that it installs in.venv:Notice the last line in the
.gitignore, which prevents Git from tracking everything in.venv. uv creates this.gitignorefile irrespective of whether you're working in a Git repo.I think it will be relatively common for dbc users to run
dbc installordbc syncto install drivers in project environments tracked by Git. (Either that already are tracked by Git or that will later be tracked by Git.) Adding this.gitignoreseems like a good use of a few bytes on disk to prevent the dbc-installed drivers from being tracked when a user doesgit add .and to prevent noise ingit status.amoeba commentedon Sep 23, 2025
Interesting. I didn't understand at first (reading comprehension) but now see the trick that's involved with your suggestion.
uv venvcreates./.venv/.gitignorewith*in it. Seems like a solid idea to me.[-]Idea: Add `/adbc/drivers/.gitignore`[/-][+]Add `/adbc/drivers/.gitignore`[/+]feat(uninstall): add uninstall command (#80)
feat: add `.gitignore` to environment-defined driver install path (#81)