From a32f26d7a0109c848590c5de2c6f5efe85cb2a26 Mon Sep 17 00:00:00 2001 From: Dan Wahlin Date: Mon, 6 Apr 2026 15:18:50 -0700 Subject: [PATCH] chore: optimize devcontainer for Codespaces prebuilds - Move install commands from postCreateCommand to onCreateCommand so they are cached during prebuild, reducing codespace startup time. - Wrap gh extension install with || true since gh copilot is now a built-in command in newer GitHub CLI versions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 815c26b..ac70afc 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -12,6 +12,6 @@ ] } }, - "onCreateCommand": "pip install pytest && npm install -g @github/copilot && gh extension install github/gh-copilot", + "onCreateCommand": "pip install pytest && npm install -g @github/copilot && (gh extension install github/gh-copilot || true)", "postStartCommand": "echo '✅ Python, pytest, GitHub CLI, and Copilot CLI are ready. Run: cd samples/book-app-project && python book_app.py help'" }