terraform-ls icon indicating copy to clipboard operation
terraform-ls copied to clipboard

Provide winget artifact in release

Open paultyng opened this issue 5 years ago • 5 comments

Related to #55 and #47, this is the new Windows package manager from Microsoft.

paultyng avatar May 23 '20 01:05 paultyng

I agree we should do it, but just to set the expectations, this won't replace Scoop or Chocolatey work, more importantly WinGet only supports alternative sources as the single point of truth for now:

https://github.com/microsoft/winget-cli#sources

The client is built around the concept of sources; a set of packages effectively. Sources provide the ability to discover and retrieve the metadata about the packages, so that the client can act on it.

The default source reflects that data available from the Community repo.

We plan to better support additional sources, and additional types of sources, in the future. For now, additional sources can be configured, but only one used at a time.

So even if we did publish our own source/repo for WinGet it's unlikely anyone would use it. They would have to use it exclusively and loose access to the community source.

The only thing we could do is publish updates to the community repo, but given that it's PR-driven process it's not something we can easily automate and probably shouldn't anyway.

TL;DR We are waiting for Microsoft at this point.

radeksimko avatar Jun 24 '20 10:06 radeksimko

I can't find any more specific docs online, but it looks like additional 3rd-party sources are now supported for WinGet: https://github.com/microsoft/winget-cli/issues/226#issuecomment-831597457

radeksimko avatar May 07 '21 09:05 radeksimko

Third party sources are supported by the Windows Package Manager client. We are working on the reference implementation of the REST API, and it will be released soon[tm].

denelon avatar May 19 '21 16:05 denelon

Hello,

Is this still something being worked on? I'm automating some desktop images and I've found that tf isn't available.

Sup3rlativ3 avatar Nov 21 '21 22:11 Sup3rlativ3

From the Windows Package Manager side, we still need to implement support for .zip:

  • microsoft/winget-cli/issues/140

A community driven draft specification is in progress:

  • microsoft/winget-cli/pull/1717

We have also released the Windows Package Manager Manifest Creator to help publish manifests to the Windows Package Manager Community App Repository with CI/CD scenarios. For organizations wishing to host their own source repository, a reference implementation is available.

denelon avatar Nov 22 '21 16:11 denelon

It seems like this functionality has now been added to winget, so it should now be possible to create a winget package based on .zip:

https://github.com/hashicorp/terraform-ls/issues/114

HenrikStanley avatar Oct 18 '22 11:10 HenrikStanley