Skip to content

fix(devcontainer): the image gets its tools with native build steps - #4366

Merged
dan-petty merged 6 commits into
mainfrom
fix/4359-devcontainer-image-tools
Nov 10, 2026
Merged

dan-petty merged 6 commits into
mainfrom
fix/4359-devcontainer-image-tools

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

In the devcontainer, openspec was not on PATH: post-create installed the locked tools into ~/.local/bin, at each container creation. The image build now gets every tool of tools.lock with native steps: sha256sum -c for each binary, uv pip sync --require-hashes for each Python tool, npm ci --ignore-scripts for each Node tool. Commands are in /usr/local/bin, and tool files in /usr/local/share/devops-tools. Post-create installs no locked tool, and --skip-tools is removed. A test fails when the Dockerfile pins differ from tools.lock until #4361, #4362 and #4363 remove it. The larger Dockerfile crashed tree-sitter 0.26.0 in devops research, so the pin is 0.26.1. The tools and npm-tools stages build on amd64 with 20 checksums passed. The full image is not built here: my registry refused the ghcr.io pull.

Closes #4359

Change: openspec/changes/archive/2026-11-10-4359-the-image-holds-the-locked-tools/

The image build installs every tool of tools.lock: commands link into /usr/local/bin and the
files of a Python or Node tool go to /usr/local/share/devops-cli. Post-create installs no locked
tool, and --skip-tools is removed.

Closes #4359
Binaries download in a builder stage with sha256sum -c, Python tools install with uv pip sync
--require-hashes, and Node tools install with npm ci --ignore-scripts in a pinned Node stage. No
custom installer runs in the build, and a source change rebuilds none of these steps.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/devcontainer The DevContainer, its image and its features labels Nov 10, 2026
tree-sitter 0.26.0 segfaults when devops research reads a Dockerfile of this size. 0.26.1 reads it
and 0.25.2 does too. Also lower the swallowed-failures ceiling of commands/devcontainer.py, and
drop the removed --skip-tools option from the instruction generator test.
@dan-petty
dan-petty marked this pull request as ready for review November 10, 2026 15:03
@dan-petty
dan-petty merged commit 3e2d9c1 into main Nov 10, 2026
26 checks passed
@dan-petty
dan-petty deleted the fix/4359-devcontainer-image-tools branch November 10, 2026 15:08
dan-petty pushed a commit that referenced this pull request Nov 10, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.107.4](v0.107.3...v0.107.4)
(2026-11-10)


### Bug Fixes

* **devcontainer:** the image gets its tools with native build steps
([#4366](#4366))
([3e2d9c1](3e2d9c1))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
dan-petty added a commit that referenced this pull request Nov 14, 2026
`docs/DEVCONTAINER_USAGE.md` says that post-create installs `k9s`,
`gh-dash` and `tuicr`. Since #4366 the image build installs every tool
of `tools.lock` in `/usr/local/bin`, and post-create installs no locked
tool (#4746).

Closes #4746

Change: `openspec/changes/archive/2026-11-14-4746-devcontainer-k9s/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/devcontainer The DevContainer, its image and its features type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(devcontainer): the image holds the locked tools in standard locations

1 participant