Repository navigation
Conversation
…ate (#3878) ## Summary This finishes the two points still open on #1763. Its `HOME` and `USERPROFILE` part was split out into #3852, which is closed. - **Host mount paths.** Each devcontainer snippet now has a JSONC comment above `mounts`. It names the host paths that must exist and says why: Docker either refuses an absent source or creates an empty directory in its place. This is option 1 of the maintainer's answer to #3754. The comment cites no hub-only doc, because the snippets are copied into other repositories. - **`mktemp` template.** The Python post-create step used `mktemp -t uv-install.XXXXXX.sh`. It now uses `mktemp "${TMPDIR:-/tmp}/uv-install.XXXXXX"`, an explicit template that still honors `TMPDIR`. The template ends with its run of `X`s, because BSD `mktemp` would read anything after them literally. The step runs the file with `sh "$installer"`, so it never needed the `.sh` suffix. The `comments` label is needed for the added comment lines. ## Verification - I ran the new `mktemp` line in `debian:bookworm-slim` (the snippet's image family) and in `busybox:1.36`, with `TMPDIR` unset and with it set. It created the file under the expected directory each time. - `tests/test_cli_usage.py` passed. - The local strict review was run twice. Pass 1 found one problem: the comment stated the requirement but not the reason, which is fixed in `c0113cf7`. Pass 2 found nothing. `prose_lint` reported no violations. The promotion PR will carry the `Closes #1763` line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain, with the changes documenting required host mounts and making temporary installer creation portable while preserving the existing cleanup and execution flow.
No open issues 🎉
What changed in this PR
This pull request promotes the devcontainer updates to main, documenting required host mount paths and making temporary installer creation portable across mktemp implementations.
Changes:
- Documents required SSH, Git signing, and GitHub CLI host paths in both devcontainer definitions.
- Replaces
mktemp -twith an explicitTMPDIR-aware template for the Python installer. - Preserves the existing installer cleanup and execution flow.
This pull request is ready to be approved.
| File | Description |
|---|---|
catalog/snippets/devcontainer/python/post-create.sh |
Uses an explicit, TMPDIR-aware temporary-file template for the uv installer. |
catalog/snippets/devcontainer/python/devcontainer.json |
Documents required host paths for bind mounts and Docker behavior. |
catalog/snippets/devcontainer/dotnet/devcontainer.json |
Documents required host paths for bind mounts and Docker behavior. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3879 +/- ##
=======================================
Coverage 83.31% 83.31%
=======================================
Files 29 29
Lines 9956 9956
=======================================
Hits 8295 8295
Misses 1661 1661
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Promotes #3878 to
main.Closes #1763.
mounts. It names the host paths that must exist and says why: Docker either refuses an absent source or creates an empty directory in its place. This is the maintainer's answer to Decide: Should the three host bind mounts in catalog/snippets/devcontainer/{python,dotnet}/devcontainer.json (~/.ssh/id_ed25519.pub,~/.config/git/allowed_signers,~/.config/gh), where a missing source? #3754.mktemptemplate. The Python post-create step usesmktemp "${TMPDIR:-/tmp}/uv-install.XXXXXX"in place ofmktemp -t uv-install.XXXXXX.sh. It still honorsTMPDIRand behaves the same across mktemp implementations.Verified by running the new
mktempline indebian:bookworm-slimandbusybox:1.36, withTMPDIRunset and with it set. #3878 had two local strict review passes, which found one problem between them, now fixed, and a Copilot round with no findings.🤖 Generated with Claude Code