Skip to content

fix: add workaround for driver manager venv path bug - #102

Merged
amoeba merged 4 commits into
columnar-tech:mainfrom
amoeba:fix/venv-workaround
Sep 26, 2025
Merged

amoeba merged 4 commits into
columnar-tech:mainfrom
amoeba:fix/venv-workaround

Conversation

@amoeba

@amoeba amoeba commented Sep 26, 2025

Copy link
Copy Markdown
Member

This works around a bug we identified with the 1.8.0 driver managers when using virtual environments. They are supposed to locate drivers in $VIRTUAL_ENV/etc/adbc/drivers but they look in $VIRTUAL_ENV/etc/adbc/. There may be a patch release soon to fix this but, in the mean time, we can work around this by symlinking manifests from $VIRTUAL_ENV/etc/adbc/drivers to $VIRTUAL_ENV/etc/adbc/. The manifests use absolute paths so it's fine.

This PR also adds an integration workflow which is how I tested my change. I don't think we want to run it on every single commit to the repo so we might discuss here when we might want to run something like this or if we want to run it in another repo.

@amoeba

amoeba commented Sep 26, 2025

Copy link
Copy Markdown
Member Author

Changing the repo visibility broke the link between the main repo and my fork so I had to re-create #92.

@amoeba

amoeba commented Sep 26, 2025

Copy link
Copy Markdown
Member Author

@zeroshade Re: #92 (review)

should we rename this better as run_venv_integration?

I think I'd rather keep it for now. Over time if we expand what tests are done I imagine we can change this.

@amoeba
amoeba requested a review from zeroshade September 26, 2025 19:53
Comment thread .github/workflows/integration.yml Outdated

- name: Build dbc
run: |
go build -o dbc ./cmd/dbc

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we using the -o so that it doesn't call it dbc.exe on windows? otherwise you can just remove the -o argument entirely since by default it'll use dbc as the name since that's the package name.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, nice. I just always run it with -o. Removed in 30d3b4c and will watch CI.

@zeroshade zeroshade left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just the one comment but otherwise looks good!

@amoeba

amoeba commented Sep 26, 2025

Copy link
Copy Markdown
Member Author

Thanks. Once CI passes I'll merge.

@amoeba
amoeba merged commit 47ddce3 into columnar-tech:main Sep 26, 2025
zeroshade pushed a commit that referenced this pull request Apr 17, 2026
This works around a bug we identified with the 1.8.0 driver managers
when using virtual environments. They are supposed to locate drivers in
`$VIRTUAL_ENV/etc/adbc/drivers` but they look in
`$VIRTUAL_ENV/etc/adbc/`. There may be a patch release soon to fix this
but, in the mean time, we can work around this by symlinking manifests
from `$VIRTUAL_ENV/etc/adbc/drivers` to `$VIRTUAL_ENV/etc/adbc/`. The
manifests use absolute paths so it's fine.

This PR also adds an integration workflow which is how I tested my
change. I don't think we want to run it on every single commit to the
repo so we might discuss here when we might want to run something like
this or if we want to run it in another repo.
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