aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/index/shellcheck/init.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-04-11 03:12:52 +0200
committerGitHub <noreply@github.com>2023-04-11 03:12:52 +0200
commite5bb23fa9ee2a2047368b05f262de6b2152d7a27 (patch)
tree1265e826e89e92a493e37c85385a77fcf6089b2c /lua/mason-registry/index/shellcheck/init.lua
parentfeat(registry): pcall require Lua registry packages (#1200) (diff)
downloadmason-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/shellcheck/init.lua')
-rw-r--r--lua/mason-registry/index/shellcheck/init.lua42
1 files changed, 0 insertions, 42 deletions
diff --git a/lua/mason-registry/index/shellcheck/init.lua b/lua/mason-registry/index/shellcheck/init.lua
deleted file mode 100644
index 4d6ef2bc..00000000
--- a/lua/mason-registry/index/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,
-}