Repository navigation
Description
Problem Description
devops infra onboard, status and plan find the checkout of an infra repo at <repos.base_dir>/<owner>/<name> when the entry of infra.repos has no path. default_checkout in src/devops_cli/infra/onboard.py resolves a relative repos.base_dir (default repos) against the working folder of the process (Path.resolve()). In a git worktree of devops-cli, such as .data/agent/worktrees/<name>, the command looks for <worktree>/repos/<owner>/<name> and stops, although the checkout is at <main checkout>/repos/<owner>/<name>.
Other commands resolve the same setting in other ways: devops workspace resolves it against the project root (src/devops_cli/commands/workspace.py), and the data paths resolve under the main worktree (resolve_data_path). Agents work in worktrees, so each agent must give --path to every devops infra command.
Reproduction Steps
- Make a worktree of devops-cli under
.data/agent/worktrees/<name>, with a checkout of an infra repo at<main checkout>/repos/<owner>/<name>and an entry ofinfra.reposwith nopath. - In the worktree, run
uv run devops infra status <owner>/<name> --ping.
Expected vs Actual Behavior
Expected: a relative repos.base_dir resolves to one folder from every worktree of the repository, as the data paths do (the main worktree), and the command finds the checkout.
Actual: the command stops with "No checkout of the infra repo / is at /repos//. Clone it there, or give its folder with --path."
Environment Diagnostics
- DevOps CLI Version: 0.121.1 (origin/main at aeb33d6, 2026-11-12)
- Python Version: 3.14.10
- OS & Architecture: Debian devcontainer on WSL2, x86_64
- Execution Environment: DevContainer
Logs, Traces, or Terminal Output
$ uv run devops infra status dan-petty/homelab --ping
✗ No checkout of the infra repo dan-petty/homelab is at <worktree>/repos/dan-petty/homelab. Clone it there, or give its folder with --path.Found while building #5124.
Pre-Submission Checklist
- I have verified that no sensitive credentials, private keys, or internal tokens are contained in this issue report.
- I have checked existing issues and pull requests to ensure this is not a duplicate.
Activity
dan-petty commentedon Nov 12, 2026
Both fix path resolution that targets the worktree instead of the main checkout, but #582 fixes devops ci while this fixes devops infra commands in default_checkout.devops-cli-service commentedon Nov 15, 2026
Released in v0.152.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.152.0
devops-cli-service commentedon Nov 15, 2026
Live since 2026-11-15 12:41 UTC