Skip to content

(WIP) Rework treatment of built-in packages #16938

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

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

fnussbaum
Copy link
Collaborator

@fnussbaum fnussbaum commented Apr 2, 2025

This should prevent frequent errors after updating packages, caused by outdated versions of built-in packages being loaded. We also ensure transient and org get updated, without having to manually bump the :min-version parameter. More generally, this PR allows installing built-in packages from arbitrary locations, for example by adding them to dotspacemacs-additional-packages with a custom quelpa recipe.

Transient is a built-in package, and also a dependency of many other packages
users might install. It makes more sense to always configure it, also when the
git layer is not used.
Previously, if no :location was specified, it was set to the default `elpa`.
This did not mean, however, that the packages where installed from ELPA; the
built-in packages were used regardless (they might not even be published on an
ELPA, of course).

Now we correctly set the location to `built-in`, in preparation to making
`:location elpa` take effect for built-in packages, too.
The package will now get updated by `configuration-layer/update-packages`.
We do not need to manually bump the version anymore.
@fnussbaum fnussbaum force-pushed the fix-package-updates branch from b3c8160 to a00cb4b Compare April 11, 2025 17:32
@fnussbaum fnussbaum changed the title (WIP) Prevent frequent errors after updating packages (WIP) Rework treatment of built-in packages Apr 11, 2025
fnussbaum added a commit to fnussbaum/spacemacs that referenced this pull request Apr 21, 2025
This allows programmatically updating specific packages (I am using this for
testing syl20bnr#16938, for example). It also prepares the possibility of selecting
packages to update through embark. Additionally, it might be slightly easier to
read.
bcc32 pushed a commit to fnussbaum/spacemacs that referenced this pull request Apr 26, 2025
This allows programmatically updating specific packages (I am using this for
testing syl20bnr#16938, for example). It also prepares the possibility of selecting
packages to update through embark. Additionally, it might be slightly easier to
read.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant