diff options
| author | William Boman <william@redwill.se> | 2023-04-11 03:12:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-11 03:12:52 +0200 |
| commit | e5bb23fa9ee2a2047368b05f262de6b2152d7a27 (patch) | |
| tree | 1265e826e89e92a493e37c85385a77fcf6089b2c /lua/mason-registry/index/vacuum/init.lua | |
| parent | feat(registry): pcall require Lua registry packages (#1200) (diff) | |
| download | mason-e5bb23fa9ee2a2047368b05f262de6b2152d7a27.tar mason-e5bb23fa9ee2a2047368b05f262de6b2152d7a27.tar.gz mason-e5bb23fa9ee2a2047368b05f262de6b2152d7a27.tar.bz2 mason-e5bb23fa9ee2a2047368b05f262de6b2152d7a27.tar.lz mason-e5bb23fa9ee2a2047368b05f262de6b2152d7a27.tar.xz mason-e5bb23fa9ee2a2047368b05f262de6b2152d7a27.tar.zst mason-e5bb23fa9ee2a2047368b05f262de6b2152d7a27.zip | |
chore: migrate packages (#1203)
Diffstat (limited to 'lua/mason-registry/index/vacuum/init.lua')
| -rw-r--r-- | lua/mason-registry/index/vacuum/init.lua | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/lua/mason-registry/index/vacuum/init.lua b/lua/mason-registry/index/vacuum/init.lua deleted file mode 100644 index a044db2a..00000000 --- a/lua/mason-registry/index/vacuum/init.lua +++ /dev/null @@ -1,43 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local github = require "mason-core.managers.github" -local platform = require "mason-core.platform" - -local coalesce, when = _.coalesce, _.when - -return Pkg.new { - name = "vacuum", - desc = _.dedent [[ - vacuum is the worlds fastest OpenAPI 3, OpenAPI 2 / Swagger linter and quality analysis tool. - Built in go, it tears through API specs faster than you can think. - vacuum is compatible with Spectral rulesets and generates compatible reports. - ]], - homepage = "https://github.com/daveshanley/vacuum", - languages = { Pkg.Lang.OpenAPI }, - categories = { Pkg.Cat.Linter }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - ---@param template string - local function release_file(template) - return _.compose(_.format(template), _.strip_prefix "v") - end - - github - .untargz_release_file({ - repo = "daveshanley/vacuum", - asset_file = coalesce( - when(platform.is.darwin_arm64, release_file "vacuum_%s_darwin_arm64.tar.gz"), - when(platform.is.darwin_x64, release_file "vacuum_%s_darwin_x86_64.tar.gz"), - when(platform.is.linux_arm64, release_file "vacuum_%s_linux_arm64.tar.gz"), - when(platform.is.linux_x64, release_file "vacuum_%s_linux_x86_64.tar.gz"), - when(platform.is.linux_x86, release_file "vacuum_%s_linux_i386.tar.gz"), - when(platform.is.win_arm64, release_file "vacuum_%s_windows_arm64.tar.gz"), - when(platform.is.win_x64, release_file "vacuum_%s_windows_x86_64.tar.gz"), - when(platform.is.win_x86, release_file "vacuum_%s_windows_i386.tar.gz") - ), - }) - .with_receipt() - ctx:link_bin("vacuum", platform.is.win and "vacuum.exe" or "vacuum") - end, -} |
