Skip to content

wt add fails to install dependencies when virtual environment doesn't exist in new worktree #5

Description

@notdp

Environment

  • OS: macOS (Darwin 24.6.0)
  • worktree.sh version: latest from main branch

Steps to Reproduce

  1. Initialize project configuration:
wt init
  1. Configure install command as:
. ".venv/bin/activate" && pip install -r requirements.txt
  1. Create a new worktree:
wt add feature-name

Actual Result

📦 Installing dependencies (. ".venv/bin/activate" && pip install -r requirements.txt)
sh: .venv/bin/activate: No such file or directory

Dependency installation fails because the .venv virtual environment doesn't exist in the new worktree directory.

Expected Result

The install command should execute successfully, or provide clear guidance when the virtual environment is missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions