Repository navigation
Description
Problem Description
The devcontainer image installs a copy of src/ into the system site-packages at build time (.devcontainer/Dockerfile:41-45: uv pip install --system --break-system-packages --no-deps /tmp/devops-cli), and /usr/local/bin/devops runs that copy. A terminal where the workspace .venv is not active finds /usr/local/bin/devops first on PATH (devcontainer.json sets no PATH). That copy has none of the changes merged after the image build, and it reports its version as 0.3.1 while the checkout is 0.8.3.
On 2026-10-28, after #2410 and #2411 merged:
devops config set firecrawl.api_key <value>failed with "Unknown configuration key 'firecrawl.api_key'".devops k8s push-secretsasked for theGH_TOKENrow of the suspended machine account, which feat(roadmap): act as GitHub App devops-roadmap instead of a machine account #2411 removed.uv run devopsran both commands from the checkout as merged.
A rebuild refreshes the copy only until the next merge.
Reproduction Steps
- In a devcontainer built before a merge that adds a setting, open a terminal without the
.venvactive. - Run
devops --versionanduv run devops --version.
Expected vs Actual Behavior
Expected: devops in any devcontainer terminal is the editable install of the checkout, so devops --version equals uv run devops --version, and a merge needs no rebuild.
Actual: devops is the copy the image built, and it stays at the image's commit.
Environment Diagnostics
devops-cli 0.8.3 at main 890e228; /usr/local/bin/devops from the image built on 2026-10-25 reports 0.3.1.
Proposed Solution
- The devcontainer puts
${containerWorkspaceFolder}/.venv/binfirst on PATH (remoteEnv), sodevopsandpythonare the project environment's. - The image keeps the dependency layer for its cache, and installs the package itself only where a job that uses the image needs it. Find each job that runs
devopsfrom the image (the DevContainer Image workflow and any CI job on that image) before removing the system install. - A check fails when a new devcontainer terminal's
devops --versiondiffers fromuv run devops --version.
Existing Tool Considered
The Dev Containers remoteEnv property and uv's project environment (uv sync into .venv, which a volume already holds) cover the need. Nothing is built.
Activity
dan-petty commentedon Oct 28, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The devcontainer resolves devops to a stale system copy instead of the editable install, causing command failures after merges.It caused real command failures on 2026-10-28 but is confined to the development environment.Developers get wrong versions and failed commands until they rebuild the image or activate the venv manually.The fix is a remoteEnv PATH entry plus removal of one install line, and the body states nothing is built.Both touch devcontainer configuration and the .venv path, but #144 is a closed docs alignment task while the candidate fixes a runtime PATH resolution bug.