Skip to content

[BUG] Synced justfiles reference scripts not included in workspace manifest #190

Closed

Description

@gerchowl

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

  1. Deploy a workspace with install.sh or just -g init-workspace
  2. Open the devcontainer
  3. 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.base and .pre-commit-config.yaml

Root Cause

Two problems:

  1. Missing manifest entries — The four .sh scripts have no entries in scripts/manifest.toml, so they are never copied into assets/workspace/.

  2. Path mismatch — Even if synced, the paths would be wrong. In the devcontainer repo, justfile.base sits at the root and scripts/ is a sibling directory. In a deployed workspace, justfile.base is imported from .devcontainer/justfile.base but just runs recipes from the project root — so scripts/devc-remote.sh resolves to <project>/scripts/devc-remote.sh, which doesn't exist. The scripts should be deployed to .devcontainer/scripts/ and referenced via source_directory() (as identified in [BUG] just check uses wrong path — justfile_directory() resolves incorrectly in imported justfile.base #187).

Possible Solution

  1. Add manifest entries to sync the four scripts into .devcontainer/scripts/ in the workspace.
  2. In synced justfiles, reference scripts relative to source_directory():
    _scripts := source_directory() / "scripts"
    This resolves correctly in both contexts:
    • Devcontainer repo: source_directory() = repo root → scripts/ ✓
    • Deployed workspace: source_directory() = .devcontainer/ → .devcontainer/scripts/ ✓
  3. For check-skill-names.sh in .pre-commit-config.yaml, apply a manifest Sed transform to update the path in the synced version.

Additional Context

Changelog Category

Fixed


  • TDD compliance (see .cursor/rules/tdd.mdc)

Activity

  1. added
    bug
    area:workspace
    effort:medium
    semver:patch
    on Feb 24, 2026
  2. self-assigned this
    on Feb 24, 2026
  3. c-vigo commented on Feb 24, 2026

    @c-vigo
    Contributor

    Related to #185

  4. reopened this on Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workspacebugeffort:mediumsemver:patch

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions