You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] postAttachCommand fails in mock-up workspace with crun getcwd error #204
When testing remote devcontainer orchestration in a mock-up folder, the devcontainer initializes successfully but fails at postAttachCommand with a runtime error from crun.
Part of PR #166 review and should be tracked under parent issue #70.
Steps to Reproduce
Open a generated/mock-up workspace (e.g. /home/carlosvigo/Documents/vigOS/tmp) in devcontainer.
Let initializeCommand complete successfully.
Wait for postAttachCommand execution.
Expected Behavior
postAttachCommand runs successfully and completes post-attach setup.
Actual Behavior
The attach phase fails with:
Error: crun: getcwd: No such file or directory: OCI runtime attempted to invoke a command that was not found
Terminal exits immediately after the failed post-attach step.
Environment
OS: Ubuntu 24.04
Container Runtime: Podman rootless (Linux)
Image Version/Tag: dev
Architecture: AMD64
Additional Context
Observed during validation of PR #166 (feature/70-remote-devc-orchestration) while testing in a mock-up folder where workspace path resolution appears inconsistent during attach.
Possible Solution
Make postAttachCommand robust to workspace cwd/path mismatch in generated/mock-up workspaces.
Prefer invoking script through a shell command that does not depend on runtime cwd state.
Add regression coverage for attach flow in mock-up folders.
Activity
fix(image): run lifecycle commands inside the container via bash
test: cover bash-wrapped devcontainer lifecycle commands
docs: update CHANGELOG
fix(image): run lifecycle commands inside the container via bash (#205)