diff options
| author | William Boman <william@redwill.se> | 2023-05-18 17:06:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-18 17:06:38 +0200 |
| commit | 227f8a9aaae495f481c768f8346edfceaf6d2951 (patch) | |
| tree | 8b2dad3c6175fac3c02489690304f759f21b3649 /lua/mason-core/path.lua | |
| parent | fix(ui): use vim.cmd("") for nvim-0.7.0 compatibility (#1307) (diff) | |
| download | mason-227f8a9aaae495f481c768f8346edfceaf6d2951.tar mason-227f8a9aaae495f481c768f8346edfceaf6d2951.tar.gz mason-227f8a9aaae495f481c768f8346edfceaf6d2951.tar.bz2 mason-227f8a9aaae495f481c768f8346edfceaf6d2951.tar.lz mason-227f8a9aaae495f481c768f8346edfceaf6d2951.tar.xz mason-227f8a9aaae495f481c768f8346edfceaf6d2951.tar.zst mason-227f8a9aaae495f481c768f8346edfceaf6d2951.zip | |
feat(installer): lock package installation (#1290)
Diffstat (limited to 'lua/mason-core/path.lua')
| -rw-r--r-- | lua/mason-core/path.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lua/mason-core/path.lua b/lua/mason-core/path.lua index 1e0038be..3d7c8668 100644 --- a/lua/mason-core/path.lua +++ b/lua/mason-core/path.lua @@ -55,7 +55,12 @@ end ---@param name string? function M.package_build_prefix(name) - return M.concat { M.install_prefix ".packages", name } + return M.concat { M.install_prefix "staging", name } +end + +---@param name string +function M.package_lock(name) + return M.package_build_prefix(("%s.lock"):format(name)) end function M.registry_prefix() |
