-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WinGet-based installation #1637
Comments
I'm always in favor of adding ripgrep to more package repositories, but it is generally not something I track as part of this project since I don't maintain those packages. If it is added, then a PR adding winget installation instructions to the README would be very welcome. One exception to this is if there is no package repo and the package manager can install directly from git repos. Cargo and brew are examples of this, and both require specific configuration files in the repo itself. I don't know if winget falls into this category. The link you gave appears to be end user documentation for the tool. (I am not a Windows user and don't know much about how its package ecosystem works these days.) |
WinGet appears conceptually similar to something like Homebrew on first pass; the place to put the YAML file describing where to get the package installer gets added HERE. However - from a quick lookaround, winget does not actually do much package management. It requires an installer to do the actual heavy lifting for program installation. I have not found a way to get it to manually copy files to a specific directory and add entries to the registry. As such, it looks like ripgrep would have to start building an installer for windows to support winget. Perhaps a powershell script that downloaded the release, unpacked it, moved it, and registered things properly in the path would suffice as an 'installer' for winget? arbitrary powershell scripts for installing things from the internet seems a bad idea, though. Ideally at least a ripgrep installer could be signed, though that requires several thousand dollars to get a cert for windows last I checked. It might be possible to package it via the new MSIX installer format as part of the CI/CD pipeline, but I don't know enough about how automated packaging works on Windows to have much more to offer. EDIT: I see there's a chocolatey package for ripgrep, but I can't find the spec file in this repo. Based on my understanding, though, chocolately allows you to specify all kinds of things like custom powershell scripts, etc, so it will do the work of copying, etc for you whereas winget cannot directly. |
@ideologysec Aye, thanks for doing that investigation! I have no plans to create an installer for ripgrep since it seems like it isn't really necessary in general. Of course, if someone else wants to add and maintain a winget package for ripgrep, then that sounds great, but it looks like it takes quite a bit of work to do it. For that reason, I don't see myself taking on that burden myself.
Right. A Chocolately package exists but it is not maintained by me. |
Winget 1.4 has just released, supporting zip installations (https://github.com/microsoft/winget-cli/releases/tag/v1.4.10173). A PR is already underway to add ripgrep to winget-pkgs:
Once the PRs are merged, a Winget Releaser workflow would have to be set up in this repo for automatic package updates. @BurntSushi Are you ok with that? |
As I said above, I don't maintain ripgrep packages. The only exception to that is for things that require configuration in this repository. I am definitely not adding any kind of CI workflow to maintain something I don't understand and therefore cannot easily fix when it inevitably breaks. |
I Tried the "winget install burntsushi.ripgrep.msvc" |
@jjoao As explicitly mentioned above, I don't maintain ripgrep packages. There are dozens of them because there are dozens of different package managers and package repositories. This is "upstream" but you have a "downstream" question. You need to ask the people that maintain the winget package you're trying to install. |
Seems like the ripgrep package in the winget repos is broken. There is a sub directory beneath that path which includes the |
@mgutz Please see microsoft/winget-cli#2909. This is already fixed in the latest pre-release of Winget https://github.com/microsoft/winget-cli/releases |
Describe your feature request
It would be really great to be able to install ripgrep on Windows through the windows package manager,
winget
.The text was updated successfully, but these errors were encountered: