-
Notifications
You must be signed in to change notification settings - Fork 365
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
feature: Install to lockfile when missing #138
Comments
This is a very specific use-case. What you can do:
|
I disagree, and would argue that this is the default case. As there is a lockfile I would expect that the version that is specified in the lock file would be set when doing operations like installing. |
After thinking about it more, you are right. I just pushed an update so that missing plugins will always be installed with the existing commit in the lockfile. |
@folke it looks like the behavior regressed. Whenever lazy auto installs a missing plugin it would install the latest commit and change the lockfile instead of respecting it. This kind of defeats the purpose of the lockfile IMO. I have multiple devices and environments that share the same dot files, and I generally don't want to update my plugins (to avoid dealing with breaking changes when I just need my editor to work). This behavior would basically keep updating my plugins whenever I start nvim on a device that hasn't got some of the plugins yet - quite an inconvenience to deal with.. |
Did you check docs the docs?
Is your feature request related to a problem? Please describe.
install.missing
is great and keeps my config from breaking saying that a plugin is missing and not installed. However when it checks missing it calls theinstall
. Install does not take the lockfile into account.lazy.nvim/lua/lazy/core/loader.lua
Lines 33 to 42 in c1f39f9
The result is that the plugin will be installed at the latest commit. Also now that install calls update on the lockfile then lockfile will be updated with the latest change.
Describe the solution you'd like
Having an option to tell install that I would like to install to the the commit specified in the lockfile if it exists.
Describe alternatives you've considered
I tried to set
install.missing = false
and then callrestore
manually but when launching nvim it fails loading my config saying that everything does not exist.Additional context
No response
The text was updated successfully, but these errors were encountered: