Skip to content

emacsPackages: revert throw#457521

Merged
wolfgangwalther merged 1 commit intoNixOS:masterfrom
wolfgangwalther:ci-revert-emacs-packages-alias
Nov 1, 2025
Merged

emacsPackages: revert throw#457521
wolfgangwalther merged 1 commit intoNixOS:masterfrom
wolfgangwalther:ci-revert-emacs-packages-alias

Conversation

@wolfgangwalther
Copy link
Contributor

We recently retired a lot of old aliases, but emacsPackages is still exposed on search.nixos.org, so should not have been removed. I argued previously, that this should not have been an alias in the first place: If it's exposed on search.nixos.org, then it is expected to be used, too.

Now that all aliases are subject to removal, we can't put this in there anymore.

We will also need that once we teach Eval to evaluate more packages than hydra builds.

cc @jopejoe1 @jian-lin

Closes #437197

Things done


Add a 👍 reaction to pull requests you find important.

We recently retired a lot of old aliases, but emacsPackages is still
exposed on search.nixos.org, so should not have been removed. I argued
previously, that this should not have been an alias in the first place:
If it's exposed on search.nixos.org, then it is expected to be used,
too.

We will also need that once we teach Eval to evaluate more packages than
hydra builds.
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Nov 1, 2025
@wolfgangwalther wolfgangwalther added this pull request to the merge queue Nov 1, 2025
Merged via the queue into NixOS:master with commit 88e244d Nov 1, 2025
29 of 32 checks passed
@wolfgangwalther wolfgangwalther deleted the ci-revert-emacs-packages-alias branch November 1, 2025 12:21
Copy link
Contributor

Choose a reason for hiding this comment

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

If we have to choose one, I slightly prefer removing emacsPackages from search.nixos.org over undeprecating emacsPackages as I said in #437197. But I am also fine with undeprecating emacsPackages. WDYT? cc @adisbladis @AndersonTorres @panchoh

Copy link
Contributor

Choose a reason for hiding this comment

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

If emacsPackages gets removed from search.nixos.org, this means that users won’t be able to use search.nixos.org to locate Emacs packages at all, or that they will be exposed differently, maybe with an alternate prefix, or no prefix at all?

(I would think that, as a user, being able to locate Emacs packages at search.nixos.org is desirable, to say the least).

Copy link
Member

Choose a reason for hiding this comment

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

I prefer removing it too.

The purpose of throw is precisely to break user config and force they to fix it, with the plus of being graceful.
But being graceful to user became being annoying to us packagers. Let's remove it and optionally make some announcement.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(I would think that, as a user, being able to locate Emacs packages at search.nixos.org is desirable, to say the least).

I very much agree.

Also, remember: Removing it essentially opts out of ever evaluating emacsPackages in CI. It's unlikely that these packages will be built by hydra, OK. Currently this also means they are not tested by GHA Eval. But my goal is to change that in the future. And for that to work, there needs to be something that can be recursed into - emacsPackages.

Again, all other major package sets have this. There is no point in making emacs differ here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Adding emacsPackages to CI sounds good! Maybe emacsPackages can be added to CI via something similar packages-ocnfig.nix. (Just saying. I have not read the CI code and I do not think I have a say in CI things.)

Copy link
Contributor

@jian-lin jian-lin left a comment

Choose a reason for hiding this comment

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

This is a "Request changes" review. (GitHub does not let users choose a review type for merged PRs so I make that clear here.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants