Skip to content

fix(setup): point the workspace python interpreter at the workspace venv - #716

Merged
c-vigo merged 4 commits into
feature/625-nix-claude-migrationfrom
bugfix/706-downstream-venv-path
Jun 25, 2026
Merged

c-vigo merged 4 commits into
feature/625-nix-claude-migrationfrom
bugfix/706-downstream-venv-path

Conversation

@c-vigo

@c-vigo c-vigo commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

/opt/venv is the decommissioned Debian image path; the Nix image has no such directory. The .vscode/settings.json manifest entry rewrote python.defaultInterpreterPath to /opt/venv/bin/python3, shipping a broken VS Code interpreter to downstream projects.

This removes the Sed transform so the source's workspace-relative ${workspaceFolder}/.venv/bin/python3 passes through unchanged (VS Code resolves ${workspaceFolder} to the opened project, where uv creates .venv), and regenerates the synced workspace asset.

Added a behavioral test that runs the real manifest sync and asserts the interpreter path is workspace-relative and never /opt/venv.

Closes #706

c-vigo added 3 commits June 25, 2026 14:29
The .vscode/settings.json manifest entry rewrote the interpreter path to
/opt/venv/bin/python3, the decommissioned Debian image path. The Nix image
has no /opt/venv, so downstream projects got a broken VS Code interpreter.
Remove the Sed transform so the workspace-relative
${workspaceFolder}/.venv/bin/python3 (resolved against the opened project,
where uv creates .venv) passes through unchanged, and regenerate the synced
workspace asset.

Refs: #706
@c-vigo
c-vigo force-pushed the bugfix/706-downstream-venv-path branch from de01993 to c0b5f5d Compare June 25, 2026 12:31
The added TestWorkspaceInterpreterPath was committed via an env workaround
that bypassed ruff-format; CI's flake-sourced ruff (0.15.x) flags it.

Refs: #706
@c-vigo
c-vigo merged commit 5eb64b1 into feature/625-nix-claude-migration Jun 25, 2026
10 checks passed
@c-vigo
c-vigo deleted the bugfix/706-downstream-venv-path branch June 25, 2026 12:53
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.

1 participant