Skip to content

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.

@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.
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.
@fnussbaum fnussbaum force-pushed the fix-package-updates branch 2 times, most recently from 9e4a1b2 to 00174d5 Compare October 21, 2025 21:10
We need to account for built-in packages when installing, checking availability
of new versions, updating, and rolling back packages.

Also refactor the last call site of configuration-layer//delete-package that
used package names instead of pkg-desc objects (namely
configuration-layer/rollback), such that we can simplify the function.
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 00174d5 to 4e1894e Compare October 21, 2025 21:53
@fnussbaum fnussbaum marked this pull request as ready for review October 21, 2025 21:54
@fnussbaum fnussbaum changed the title (WIP) Rework treatment of built-in packages Rework treatment of built-in packages Oct 21, 2025
@fnussbaum
Copy link
Collaborator Author

This is now ready for review. I had no problems with updating packages with these commits in the last months, whereas before I frequently encountered broken package installations. I also vaguely remember quite a few reported issues that were related or caused by these load- and installation-order subtleties.

@fnussbaum
Copy link
Collaborator Author

@bcc32 @smile13241324 (There is no rush, take your time, just pinging again in case the notification got lost.)

@smile13241324
Copy link
Collaborator

Whups this got lost i'll do a test today, thsnks for pinging :) @fnussbaum

Copy link
Collaborator

@smile13241324 smile13241324 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@smile13241324 smile13241324 merged commit aff4cf0 into syl20bnr:develop Nov 1, 2025
8 of 9 checks passed
fnussbaum added a commit that referenced this pull request Nov 1, 2025
One instance of the deprecated oref slot syntax remained.
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.

2 participants