Add Winget and Chocolatey support to cratis update#26
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
- 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>
Copilot
AI
changed the title
[WIP] Add support for Winget and Chocolatey packaging
Add Winget and Chocolatey support to May 16, 2026
cratis update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cratis updateonly supported dotnet tool and Homebrew. On Windows, installations via Winget or Chocolatey fell through toManualwith no auto-update path.Added
WingetandChocolateyvalues toCliUpdateStrategyenum (#issue)\WinGet\Packages\path pattern (covers both user-scope%LocalAppData%\Microsoft\WinGet\Packages\and machine-scope%ProgramFiles%\WinGet\Packages\) (#issue)\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)Documentation/getting-started/index.md(#issue)Changed
SelfUpdateCommandLlmDescription updated to mention Winget and Chocolatey (#issue)wingetandchoconot on PATH (#issue)