We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 71ecdcb + bcaf3ce commit b9d8ef3Copy full SHA for b9d8ef3
2 files changed
src/copilot-cli/devcontainer-feature.json
@@ -15,7 +15,7 @@
15
"description": "Select version of the GitHub Copilot CLI, if not latest."
16
}
17
},
18
- "postStartCommand": "copilot update",
+ "postStartCommand": "[ -f /etc/devcontainer-copilot-cli/use-latest ] && copilot update || true",
19
"customizations": {
20
"vscode": {
21
"settings": {
src/copilot-cli/install.sh
@@ -80,3 +80,9 @@ echo "Downloading GitHub Copilot CLI..."
80
81
install_using_github
82
83
+# Create a flag file if using "latest" so the postStartCommand knows to auto-update
84
+if [ "${CLI_VERSION}" = "latest" ]; then
85
+ mkdir -p /etc/devcontainer-copilot-cli
86
+ touch /etc/devcontainer-copilot-cli/use-latest
87
+fi
88
+
0 commit comments