Add support for HTTP/HTTPS urls to winget install -m [path] option.
This would allow for light weight sharing of YAML files without having to create a new source and register it. This would be useful for sharing one line commands to users to install software not in yes merged in the repos. For example buddy testing.
I don't really see any benefit in this over pulling the file ahead of the installation, e.g.:
Invoke-WebRequest -Uri https://github.com/microsoft/winget-pkgs/raw/master/manifests/Git/Git/2.24.1.2.yaml -OutFile git.yaml
winget install -m git.yaml
I work on a team that will often run ps remote commands on a pool (thousands) of machines and anytime you have to touch the local disk it gets more complicated. Not having to figure out a temp directory, download a file and clean up the file is simpler and more reliable.
winget install -m https://github.com/microsoft/winget-pkgs/raw/master/manifests/Git/Git/2.24.1.2.yaml
^^ Is cleaner
Sorry, but we're talking about a text file that is at most a few KB in size. And you can even do:
Invoke-WebRequest -Uri https://github.com/microsoft/winget-pkgs/raw/master/manifests/Git/Git/2.24.1.2.yaml -OutFile $env:temp\git.yaml
winget install -m $env:temp\git.yaml
That uses the user's temp directory so that the file gets removed on the next cleanmgr run. I personally don't see the need for this but I'm very much interested in what other users think about the request :-)