Skip to content

fix: altimate-dbt commands fail with hardcoded CI path in published binary #466

@suryaiyer95

Description

@suryaiyer95

Problem

altimate-dbt build (and other commands that use the Python bridge) fail in all published releases with:

can't open file '/home/runner/work/altimate-code/altimate-code/node_modules/.bun/python-bridge@1.1.0/node_modules/python-bridge/node_python_bridge.py': [Errno 2] No such file or directory

The build step bakes a compile-time constant path into the bundle that only exists on the CI runner. This affects every user.

Impact

All altimate-dbt commands that use the Python bridge are broken in published releases since PR #201.

Fix

Patch the bundled __dirname to resolve at runtime and ship node_python_bridge.py alongside the dist.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions