Skip to content

Only use realpath to resolve source paths - #14

Merged
sshine merged 1 commit into
nix-tools:mainfrom
mrdziuban:dest-realpath
Aug 2, 2026
Merged

Only use realpath to resolve source paths#14
sshine merged 1 commit into
nix-tools:mainfrom
mrdziuban:dest-realpath

Conversation

@mrdziuban

Copy link
Copy Markdown
Contributor

Using realpath for both the source and destination paths can cause mounts in the sandbox to appear in the wrong location.

For example, --rw /var/run/docker.sock causes the sandbox to contain /run/docker.sock instead of /var/run/docker.sock, which prevents Docker from connecting to the host daemon without further configuration.

This updates the logic in bubblebox.js to only use realpath on the source path to ensure that the sandbox contains the mount at the expected location.

Using `realpath` for both the source and destination paths can cause mounts in the sandbox to appear in the wrong location.

For example, `--rw /var/run/docker.sock` causes the sandbox to contain `/run/docker.sock` instead of `/var/run/docker.sock`, which prevents Docker from connecting to the host daemon without further configuration.

This updates the logic in `bubblebox.js` to only use `realpath` on the source path to ensure that the sandbox contains the mount at the expected location.
@sshine

sshine commented Aug 2, 2026

Copy link
Copy Markdown
Member

Hi, and thanks a lot for your contribution!

I'll have a look at it soon and merge it.

@sshine
sshine merged commit 5046b03 into nix-tools:main Aug 2, 2026
@mrdziuban
mrdziuban deleted the dest-realpath branch August 4, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants