williamboman / mason.nvim

Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters.
Apache License 2.0
7.22k stars 258 forks source link

feat(registry): replace yq exec in file: source #1696

Open baodrate opened 2 months ago

baodrate commented 2 months ago

for the file: registry source, replace the call to yq with a vendored pure-lua yaml parser.

This reduces our dependencies on external programs, especially since yq is not easily available on every system. e.g. the default yq program in Arch is kislyuk/yq rather than mikefarah/yq as command seems to expect.

I confirmed by comparing the json output of the github:mason-org/mason-registry source against the json-encoded output of the file: source pointing at a local copy. Other than the order of some fields they are exactly the same