Skip to content

Fix Copilot CLI installer to use default version instead of latest#10108

Merged
pelikhan merged 3 commits intomainfrom
copilot/fix-default-version-installation
Jan 15, 2026
Merged

Fix Copilot CLI installer to use default version instead of latest#10108
pelikhan merged 3 commits intomainfrom
copilot/fix-default-version-installation

Conversation

Copy link
Contributor

Copilot AI commented Jan 15, 2026

The Copilot CLI installer was downloading latest instead 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:

# Before - VERSION not passed to sudo environment
export VERSION=0.0.382 && sudo bash /tmp/copilot-install.sh

# After - VERSION passed directly to sudo
sudo VERSION=0.0.382 bash /tmp/copilot-install.sh

Changes

  • pkg/workflow/copilot_srt.go: Updated installer command to pass VERSION directly to sudo
  • pkg/workflow/copilot_installer_test.go: Updated test assertions to verify new command format
  • 48 workflow lock files: Recompiled to apply fix across all workflows

The installer now correctly uses DefaultCopilotVersion when no version is specified, preventing unexpected version drift to latest releases.

Original prompt

Make sure that the install copilot cli is using the default version when it is not specified in the frontmatter (not latest by default)

See Downloading from: https://github.com/github/copilot-cli/releases/latest/download/copilot-linux-x64.tar.gz


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 15, 2026 17:21
- 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>
Copilot AI changed the title [WIP] Ensure default version is used for Copilot CLI installation Fix Copilot CLI installer to use default version instead of latest Jan 15, 2026
Copilot AI requested a review from pelikhan January 15, 2026 17:31
@pelikhan pelikhan added the smoke label Jan 15, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰

@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

@github-actions
Copy link
Contributor

Smoke Test Results - Claude Engine

Last 2 Merged PRs:

Test Results:
✅ GitHub MCP - Fetched merged PRs successfully
✅ Tavily Web Search - Returned 5 results for "GitHub Agentic Workflows"
✅ Playwright - Navigated to github.com, title contains "GitHub"
✅ File Writing - Created /tmp/gh-aw/agent/smoke-test-claude-21040409994.txt
✅ Bash Tool - Verified file contents

Overall Status: PASS

AI generated by Smoke Claude

@github-actions
Copy link
Contributor

Smoke Test Results - Copilot Engine

Last 2 Merged PRs:

Test Results:

  • ✅ GitHub MCP: Retrieved PR data successfully
  • ❌ Serena Go: go command not available
  • ✅ Playwright: Page title contains "GitHub"
  • ✅ File Writing: Created /tmp/gh-aw/agent/smoke-test-copilot-21040410006.txt
  • ✅ Bash Tool: File verified successfully

Overall Status: PARTIAL PASS (4/5 tests passed)

cc: @pelikhan @copilot

AI generated by Smoke Copilot

@pelikhan pelikhan marked this pull request as ready for review January 15, 2026 17:39
@pelikhan pelikhan merged commit b3cc046 into main Jan 15, 2026
36 checks passed
@pelikhan pelikhan deleted the copilot/fix-default-version-installation branch January 15, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants