vim-lsp-settings icon indicating copy to clipboard operation
vim-lsp-settings copied to clipboard

auto download from the latest release

Open prabirshrestha opened this issue 4 years ago • 3 comments

Seems like every few weeks I seem to be sending PRs to update rust-analyzer. would be good if we can automate this.

Might be directly make a call to https://api.github.com/repos/rust-analyzer/rust-analyzer/releases and then find the last release and then use that version.

might need something like

let releases = GetGithubRelease('rust-analyzer/rust-analyzer')
let download_url  = release[0].linux

prabirshrestha avatar May 09 '20 04:05 prabirshrestha

I think that the method of acquiring the download URL will be the first existing target other than nightly.

How to store the current version, create a local file and write meta information ?, eg id.

I want interval check to reduce server load.

wordijp avatar May 21 '20 12:05 wordijp

sent an example PR for rust-analyzer that works for linux/mac. Someone would need to add support for windows.

https://github.com/mattn/vim-lsp-settings/pull/392

prabirshrestha avatar Feb 16 '21 00:02 prabirshrestha

One option is to use https://github.com/renovatebot/renovate/.

Renovate is quite advance and is able to lookup releases using various sources (npmjs, github releases, etc.)

MindTooth avatar Jul 18 '21 20:07 MindTooth