Description
The behaviour of default working directory has changed in 0.1.12+ from /workspace to the image's default working directory).
However the documentation still shows default should be workspace path:
➜ matchlocktesting matchlock help run | grep workspace
Guest paths are relative to workspace (or use full workspace paths):
./mycode:code Mounts to <workspace>/code
./data:/workspace/data Same as above (explicit)
/host/path:subdir:ro Read-only mount to <workspace>/subdir
-w, --workdir string Working directory inside the sandbox (default: workspace path)
--workspace string Guest mount point for VFS (default "/workspace")
Steps to Reproduce
➜ matchlocktesting matchlock run --image alpine:latest --rm -it sh
~ # pwd
/
~ # cd /workspace/
/workspace #
Expected Behaviour
Default working directory is /workspace.
Actual Behaviour
Default working directory is dependent on the image's default (/ on Alpine, something else on other images).
Environment
- OS: macOS 15.7.3
- Architecture: arm64
- Matchlock version: 0.1.19
- VM backend: Virtualization.framework
- Installation method: Brew 🍻
Description
The behaviour of default working directory has changed in 0.1.12+ from
/workspaceto the image's default working directory).However the documentation still shows default should be workspace path:
Steps to Reproduce
Expected Behaviour
Default working directory is
/workspace.Actual Behaviour
Default working directory is dependent on the image's default (
/on Alpine, something else on other images).Environment