Fix Copilot CLI installer to use default version instead of latest#10108
Fix Copilot CLI installer to use default version instead of latest#10108
Conversation
- Changed `export VERSION=X && sudo bash` to `sudo VERSION=X bash` to properly pass VERSION env var to installer script - Updated all tests to verify the new command format - Added comment explaining why VERSION must be passed directly to sudo - Verified fix with compiled workflow outputs showing correct version Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Updated 48 workflow lock files to use the corrected installer command that properly passes VERSION to sudo Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
Smoke Test Results - Claude EngineLast 2 Merged PRs:
Test Results: Overall Status: PASS
|
Smoke Test Results - Copilot EngineLast 2 Merged PRs:
Test Results:
Overall Status: PARTIAL PASS (4/5 tests passed)
|
The Copilot CLI installer was downloading
latestinstead of the pinned default version (0.0.382) when no version was explicitly specified in workflow frontmatter.Root Cause
The installer command used
export VERSION=X && sudo bash script.sh, which doesn't preserve environment variables in sudo by default:Changes
pkg/workflow/copilot_srt.go: Updated installer command to pass VERSION directly to sudopkg/workflow/copilot_installer_test.go: Updated test assertions to verify new command formatThe installer now correctly uses
DefaultCopilotVersionwhen no version is specified, preventing unexpected version drift to latest releases.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.