Skip to content

Add Winget and Chocolatey support to cratis update - #26

Draft
einari with Copilot wants to merge 2 commits into
mainfrom
copilot/add-support-for-winget-chocolatey
Draft

Add Winget and Chocolatey support to cratis update#26
einari with Copilot wants to merge 2 commits into
mainfrom
copilot/add-support-for-winget-chocolatey

Conversation

CopilotAI commented May 16, 2026

Copy link
Copy Markdown
Contributor

cratis update only supported dotnet tool and Homebrew. On Windows, installations via Winget or Chocolatey fell through to Manual with no auto-update path.

Added

  • Winget and Chocolatey values to CliUpdateStrategy enum (#issue)
  • Auto-detection of Winget installs via \WinGet\Packages\ path pattern (covers both user-scope %LocalAppData%\Microsoft\WinGet\Packages\ and machine-scope %ProgramFiles%\WinGet\Packages\) (#issue)
  • Auto-detection of Chocolatey installs via \chocolatey\bin\ and \chocolatey\lib\ path patterns (#issue)
  • winget upgrade --id Cratis.Cli [--version <x>] update path for Winget installs (#issue)
  • choco upgrade cratis --yes [--version <x>] update path for Chocolatey installs (both support version pinning via --version) (#issue)
  • Windows installation instructions (Winget + Chocolatey) to Documentation/getting-started/index.md (#issue)
  • Specs for new detection and update process start info paths — 8 new test cases (#issue)

Changed

  • SelfUpdateCommand LlmDescription updated to mention Winget and Chocolatey (#issue)
  • Process-start failure hints now include actionable messages for winget and choco not on PATH (#issue)

CopilotAI linked an issue May 16, 2026 that may be closed by this pull request
- Add Winget and Chocolatey values to CliUpdateStrategy enum
- Detect winget install path (\WinGet\Packages\) and chocolatey paths (\chocolatey\bin\, \chocolatey\lib\)
- Run `winget upgrade --id Cratis.Cli [--version x]` for winget installs
- Run `choco upgrade cratis --yes [--version x]` for chocolatey installs
- Update SelfUpdateCommand LlmDescription and process-start failure hints
- Add specs covering detection and update process start info for both package managers
- Update getting-started docs with Windows Winget and Chocolatey install instructions
Agent-Logs-Url: https://github.com/Cratis/cli/sessions/f35097ca-c130-4964-86ce-89ff10c7010e
Co-authored-by: einari <134365+einari@users.noreply.github.com>
CopilotAI changed the title [WIP] Add support for Winget and Chocolatey packagingAdd Winget and Chocolatey support to cratis updateMay 16, 2026
CopilotAI requested a review from einariMay 16, 2026 07:45
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Winget and Chocolatey

2 participants

@einari