Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lockfile or ability to freeze a certain package version #1701

Open
1 task done
mguellsegarra opened this issue May 11, 2024 · 2 comments
Open
1 task done

Lockfile or ability to freeze a certain package version #1701

mguellsegarra opened this issue May 11, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@mguellsegarra
Copy link

I've searched open issues for similar requests

  • Yes

Is your feature request related to a problem? Please describe.

The issue relates to the lack of a feature in mason.nvim that would allow for the consistent management of tool versions across different environments or over time -- version lock or mason lock file.

Recently, an update to a tool I rely on (eslint-lsp, see neovim/nvim-lspconfig#3146) automatically updated through mason.nvim, causing my established development workflow to break unexpectedly. This problem highlights the need for a mechanism to lock or pin specific versions of packages to prevent automatic updates that might introduce breaking changes.

Describe the solution you'd like

I would like mason.nvim to support either a lockfile mechanism or a way to specify and freeze the versions of packages that it manages. This feature would function similarly to npm's package-lock.json or yarn's yarn.lock, ensuring that once a package version is installed, it remains the same across installations until explicitly upgraded. This could be implemented as an additional option in the Mason configuration where users can pin the package versions they install.

Describe potential alternatives you've considered

No response

Additional context

No response

@mguellsegarra mguellsegarra added the enhancement New feature or request label May 11, 2024
@williambotman williambotman added this to Needs triage in Issue Triaging May 11, 2024
@varac
Copy link

varac commented May 12, 2024

Related issues: #425, #832

@zapling
Copy link

zapling commented May 24, 2024

Duplicate of #731.

I have written a plugin for this while we are waiting for an official solution https://github.com/zapling/mason-lock.nvim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Issue Triaging
Needs triage
Development

No branches or pull requests

3 participants