Repository navigation
Conversation
|
One thing to think about.. There are two reasonable approaches here: Create a symlink or duplicate the file. The symlink approach seems to work on Linux and I expect it will work on macOS but, on Windows, symlinks a trickier. Windows normally requires admin privs to create symlinks but Go supports detection of "Developer Mode" (an OS-wide setting IIRC) which lets non-admin users create symlinks. We could fall back to duplicating the manifest instead of symlinking on Windows. |
|
At least in CI (which I bet has developer mode turned on), the symlink approach seems to work fine. I'll keep working on this tomorrow. |
|
I'm happy with this but as a final test, I've commented out the code change and am letting CI test. |
|
Okay this looks good. Without this change, the GHA workflow fails each OS: Linux fails: See the associated run: https://github.com/columnar-tech/dbc/actions/runs/18027435968/job/51297285706. |
|
Great, when I re-enable the workaround, all CI jobs pass, see https://github.com/columnar-tech/dbc/actions/runs/18027487417. |
|
Ready for 👀 @zeroshade |
| if [[ "$RUNNER_OS" == "Windows" ]]; then | ||
| go build -o dbc.exe ./cmd/dbc | ||
| else | ||
| go build -o dbc ./cmd/dbc | ||
| fi |
There was a problem hiding this comment.
This can be simplified as just go build ./cmd/dbc it will automatically use dbc or dbc.exe without us needing to maintain the logic with -o
There was a problem hiding this comment.
Oh, nice. I had a heck of a time finding the right incantation to run dbc on Windows in CI. I'll change this.
| set -eux | ||
|
|
||
| python -m venv .venv | ||
|
|
||
| if [ -f ".venv/bin/activate" ]; then | ||
| . ".venv/bin/activate" | ||
| else | ||
| . ".venv/Scripts/activate" | ||
| fi |
There was a problem hiding this comment.
should we rename this better as run_venv_integration?
❌ Deploy Preview for columnar-dbc failed.
|
|
Hrm, not sure what closed the PR. |
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/driversbut 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/driversto$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.