-
Notifications
You must be signed in to change notification settings - Fork 151
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
Do not remove unused packages from straight lockfile #1096
Comments
This is the purpose of |
I don't think this is very practical with the way my config is setup. I basically have to generate a complete list of all dependencies ahead of time and then register them. That or update each individual package so alongside an optionally evaluated use-package block I have an explicit straight-register block. Do you have any suggestions for other projects might be going about this 🤔. I'm aware doom just seems to lock in the use-package block directly but is there a less grindy approach you could recommend. Personally I don't see why this wouldn't behave just like the straight repos directory. You only remove things when the user chooses to prune them out, otherwise keep everything in a stable state. |
Well, the current implementation assumes that all packages are available in order to compute dependencies and the lockfile. We could add support for not pruning the lockfile as aggressively, but it wouldn't be a full solve: the lockfile generation would still prune undeclared packages. Doom essentially implements its own package management layer on top of
You could configure your I understand why this feels like a hack to you: it's because the current implementation of |
Hi there,
In my Emacs config I often have several optional packages which I don't even install if I haven't enabled them for my current environment. It seems like straight removes the package version from the lockfile if I run straight-freeze-versions while that package is not available. Then when I re-enable the package it auto upgrades to the latest version. Would it be possible to retain packages whose versions have not changed in the lockfile instead of deleting them as if they've been permanently removed?
The text was updated successfully, but these errors were encountered: