aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/shellcheck/init.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-02-20 22:19:39 +0100
committerGitHub <noreply@github.com>2023-02-20 22:19:39 +0100
commitb8a6632a0f2d263199d5d480ca85477fe0f414ab (patch)
tree57e1ee0f3cef078ec144ecdf1b2fa861acf47755 /lua/mason-registry/shellcheck/init.lua
parentchore: autogenerate (#1015) (diff)
downloadmason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.gz
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.bz2
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.lz
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.xz
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.zst
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.zip
feat: configurable registries (#1016)
Diffstat (limited to 'lua/mason-registry/shellcheck/init.lua')
-rw-r--r--lua/mason-registry/shellcheck/init.lua42
1 files changed, 0 insertions, 42 deletions
diff --git a/lua/mason-registry/shellcheck/init.lua b/lua/mason-registry/shellcheck/init.lua
deleted file mode 100644
index 4d6ef2bc..00000000
--- a/lua/mason-registry/shellcheck/init.lua
+++ /dev/null
@@ -1,42 +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"
-
-return Pkg.new {
- name = "shellcheck",
- desc = [[ShellCheck, a static analysis tool for shell scripts]],
- homepage = "https://www.shellcheck.net/",
- categories = { Pkg.Cat.Linter },
- languages = { Pkg.Lang.Bash },
- ---@async
- ---@param ctx InstallContext
- install = function(ctx)
- platform.when {
- unix = function()
- github
- .untarxz_release_file({
- strip_components = 1,
- repo = "koalaman/shellcheck",
- asset_file = _.coalesce(
- _.when(platform.is.mac, _.format "shellcheck-%s.darwin.x86_64.tar.xz"),
- _.when(platform.is.linux_x64, _.format "shellcheck-%s.linux.x86_64.tar.xz"),
- _.when(platform.is.linux_arm64, _.format "shellcheck-%s.linux.aarch64.tar.xz"),
- _.when(platform.is.linux_arm, _.format "shellcheck-%s.linux.armv6hf.tar.xz")
- ),
- })
- .with_receipt()
- ctx:link_bin("shellcheck", "shellcheck")
- end,
- win = function()
- github
- .unzip_release_file({
- repo = "koalaman/shellcheck",
- asset_file = _.coalesce(_.when(platform.is.win_x64, _.format "shellcheck-%s.zip")),
- })
- .with_receipt()
- ctx:link_bin("shellcheck", "shellcheck.exe")
- end,
- }
- end,
-}