diff options
| author | William Boman <william@redwill.se> | 2023-06-28 19:21:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-28 17:21:28 +0000 |
| commit | 8942b5776a14b93ac598d9852df81132823a5d12 (patch) | |
| tree | 635bc6d0bc2c7f7eef44400dbd393b10cd3a6f17 | |
| parent | fix(installer): timeout schema download after 5s (#1374) (diff) | |
| download | mason-8942b5776a14b93ac598d9852df81132823a5d12.tar mason-8942b5776a14b93ac598d9852df81132823a5d12.tar.gz mason-8942b5776a14b93ac598d9852df81132823a5d12.tar.bz2 mason-8942b5776a14b93ac598d9852df81132823a5d12.tar.lz mason-8942b5776a14b93ac598d9852df81132823a5d12.tar.xz mason-8942b5776a14b93ac598d9852df81132823a5d12.tar.zst mason-8942b5776a14b93ac598d9852df81132823a5d12.zip | |
chore(ci): upgrade linter versions (#1377)
| -rw-r--r-- | .github/workflows/cbfmt.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/selene.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/stylua.yml | 2 | ||||
| -rw-r--r-- | lua/mason-core/installer/managers/gem.lua | 26 |
4 files changed, 19 insertions, 13 deletions
diff --git a/.github/workflows/cbfmt.yml b/.github/workflows/cbfmt.yml index 57d77525..e59deba3 100644 --- a/.github/workflows/cbfmt.yml +++ b/.github/workflows/cbfmt.yml @@ -20,7 +20,7 @@ jobs: - name: Download Stylua run: | mkdir /tmp/stylua && cd $_ - curl -fsSL -o stylua.zip "https://github.com/JohnnyMorganz/StyLua/releases/download/v0.17.0/stylua-linux.zip" + curl -fsSL -o stylua.zip "https://github.com/JohnnyMorganz/StyLua/releases/download/v0.18.0/stylua-linux.zip" unzip -d /usr/local/bin stylua.zip - name: Download Shellharden run: | diff --git a/.github/workflows/selene.yml b/.github/workflows/selene.yml index 097c7c86..fb87d50e 100644 --- a/.github/workflows/selene.yml +++ b/.github/workflows/selene.yml @@ -17,4 +17,4 @@ jobs: # token is needed because the action allegedly downloads binary from github releases token: ${{ secrets.GITHUB_TOKEN }} args: lua/ tests/ - version: 0.24.0 + version: 0.25.0 diff --git a/.github/workflows/stylua.yml b/.github/workflows/stylua.yml index 46286bb1..1edb4bfa 100644 --- a/.github/workflows/stylua.yml +++ b/.github/workflows/stylua.yml @@ -18,4 +18,4 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} # CLI arguments args: --check . - version: 0.17.0 + version: 0.18.0 diff --git a/lua/mason-core/installer/managers/gem.lua b/lua/mason-core/installer/managers/gem.lua index 71bf2dcd..35d94847 100644 --- a/lua/mason-core/installer/managers/gem.lua +++ b/lua/mason-core/installer/managers/gem.lua @@ -50,16 +50,22 @@ function M.create_bin_wrapper(bin) return Result.failure(("Cannot link Gem executable %q because it doesn't exist."):format(bin)) end - return Result.pcall(ctx.write_shell_exec_wrapper, ctx, bin, path.concat { ctx.package:get_install_path(), bin_path }, { - GEM_PATH = platform.when { - unix = function() - return ("%s:$GEM_PATH"):format(ctx.package:get_install_path()) - end, - win = function() - return ("%s;%%GEM_PATH%%"):format(ctx.package:get_install_path()) - end, - }, - }) + return Result.pcall( + ctx.write_shell_exec_wrapper, + ctx, + bin, + path.concat { ctx.package:get_install_path(), bin_path }, + { + GEM_PATH = platform.when { + unix = function() + return ("%s:$GEM_PATH"):format(ctx.package:get_install_path()) + end, + win = function() + return ("%s;%%GEM_PATH%%"):format(ctx.package:get_install_path()) + end, + }, + } + ) end return M |
