Repository navigation
Description
Description
Several scripts in the devcontainer repo's scripts/ directory are referenced by synced justfiles and .pre-commit-config.yaml, but are never deployed to downstream workspaces via the manifest (scripts/manifest.toml). Any just recipe or pre-commit hook that calls them fails with "No such file or directory".
Affected Scripts
| Script | Referenced by | Error trigger |
|---|---|---|
scripts/devc-remote.sh |
justfile.base line 382 |
just devc-remote in any deployed workspace |
scripts/resolve-branch.sh |
justfile.worktree lines 129, 165 |
just worktree-start (latent — worktree not imported by default) |
scripts/derive-branch-summary.sh |
justfile.worktree lines 149, 153 |
just worktree-start (latent — same) |
scripts/check-skill-names.sh |
.pre-commit-config.yaml line 137 |
Commit touching .cursor/skills/ (also tracked in #186) |
Steps to Reproduce
- Deploy a workspace with
install.shorjust -g init-workspace - Open the devcontainer
- Run
just devc-remote myserver→ fails:bash: scripts/devc-remote.sh: No such file or directory
Expected Behavior
All scripts referenced by synced justfiles are available in the deployed workspace and recipes work correctly.
Actual Behavior
Scripts are missing. The manifest (scripts/manifest.toml) syncs justfile.base, justfile.worktree, and .pre-commit-config.yaml but not the scripts they depend on.
Environment
- All deployed workspaces using synced
justfile.baseand.pre-commit-config.yaml
Root Cause
Two problems:
-
Missing manifest entries — The four
.shscripts have no entries inscripts/manifest.toml, so they are never copied intoassets/workspace/. -
Path mismatch — Even if synced, the paths would be wrong. In the devcontainer repo,
justfile.basesits at the root andscripts/is a sibling directory. In a deployed workspace,justfile.baseis imported from.devcontainer/justfile.basebutjustruns recipes from the project root — soscripts/devc-remote.shresolves to<project>/scripts/devc-remote.sh, which doesn't exist. The scripts should be deployed to.devcontainer/scripts/and referenced viasource_directory()(as identified in [BUG] just check uses wrong path — justfile_directory() resolves incorrectly in imported justfile.base #187).
Possible Solution
- Add manifest entries to sync the four scripts into
.devcontainer/scripts/in the workspace. - In synced justfiles, reference scripts relative to
source_directory():This resolves correctly in both contexts:_scripts := source_directory() / "scripts"
- Devcontainer repo:
source_directory()= repo root →scripts/✓ - Deployed workspace:
source_directory()=.devcontainer/→.devcontainer/scripts/✓
- Devcontainer repo:
- For
check-skill-names.shin.pre-commit-config.yaml, apply a manifestSedtransform to update the path in the synced version.
Additional Context
- [CHORE] Make container scripts callable via PATH and manifest sync #185 — related: making container scripts callable via PATH
- [BUG] Container image missing bandit and check-skill-names.sh for workspace pre-commit hooks #186 — narrowly covers
bandit+check-skill-names.shfor pre-commit - [BUG] just check uses wrong path — justfile_directory() resolves incorrectly in imported justfile.base #187 — covers
just checkpath resolution (samesource_directory()fix pattern) - [BUG] vig-utils pre-commit hooks fail in deployed workspace CI #161 — covers vig-utils CLI hooks not available in deployed workspaces
justfile.worktreeis synced to.devcontainer/justfile.worktreebut not imported byassets/workspace/justfile— the worktree script failures are latent until a user adds the import
Changelog Category
Fixed
- TDD compliance (see .cursor/rules/tdd.mdc)
Activity
fix(workspace): sync scripts referenced by justfiles into manifest (#190
c-vigo commentedon Feb 24, 2026
Related to #185
fix(workspace): sync scripts referenced by justfiles into manifest (#190