From 2c2f1afc48670710fe35e705792281bed571813a Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 3 Apr 2023 20:44:59 +0200 Subject: [PATCH] Support checkout directory which are not name supervisor (#4223) VSCode by default bind mounts the project dir into /workspace. Our scripts assume the Supervisor repository at /workspace/supervisor, but there is no guarnatee for that with VSCode default behavior. Explicitly mount it to /workspace/supervisor so we can safely make that assumption in our devcontainer scripts. --- .devcontainer/devcontainer.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 77618694e..e48dcdc47 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,8 @@ { "name": "Supervisor dev", "image": "ghcr.io/home-assistant/devcontainer:supervisor", + "workspaceMount": "source=${localWorkspaceFolder},target=/workspace/supervisor/,type=bind", + "workspaceFolder": "/workspace/supervisor/", "appPort": ["9123:8123", "7357:4357"], "postCreateCommand": "bash devcontainer_bootstrap", "runArgs": ["-e", "GIT_EDITOR=code --wait", "--privileged"],