Skip to content

update-from-overlay.py: A cleaner bulk-update script#473079

Open
AndersonTorres wants to merge 1 commit intoNixOS:masterfrom
museoa:update-from-overlay.py
Open

update-from-overlay.py: A cleaner bulk-update script#473079
AndersonTorres wants to merge 1 commit intoNixOS:masterfrom
museoa:update-from-overlay.py

Conversation

@AndersonTorres
Copy link
Member

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@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. 6.topic: emacs Text editor labels Dec 21, 2025
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.

An important part of bumping elisp pkgs is to find new failed builds and fix them or report them to upstreams, which this PR seems not include.

I think it is a good idea to focus on one thing in a PR. Let's discuss your python rewrite here and do the elisp bump in another PR. I'll do the bump if nobody does it first.

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 feature is very useful and easy to add, so I'll mark it as blocking.

@AndersonTorres
Copy link
Member Author

An important part of bumping elisp pkgs is to find new failed builds and fix them or report them to upstreams, which this PR seems not include.

The bumping here is a proof of concept, not intended to be merged.

@AndersonTorres AndersonTorres force-pushed the update-from-overlay.py branch 2 times, most recently from fa6b143 to 3b66fb3 Compare December 24, 2025 21:42
@nixpkgs-ci nixpkgs-ci bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 25, 2025
@jian-lin
Copy link
Contributor

It seems this PR is under active development. I'll unsubscribe it. Feel free to ping me when it is ready for review.

@nixpkgs-ci nixpkgs-ci bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 26, 2025
@AndersonTorres
Copy link
Member Author

AndersonTorres commented Dec 26, 2025

@jian-lin now that I wrote the docstrings, feel free to review.

(edit: I have added a commit, adding a logging hierarchy.)

@AndersonTorres AndersonTorres force-pushed the update-from-overlay.py branch 2 times, most recently from 1517ca0 to 1216617 Compare December 27, 2025 23:19
@jian-lin jian-lin self-requested a review December 30, 2025 12:20
@AndersonTorres AndersonTorres force-pushed the update-from-overlay.py branch from 1216617 to e051229 Compare January 5, 2026 14:48
@jian-lin
Copy link
Contributor

Too much suggestions

Sorry! Since all blocking comments have been resolved, I think it is fine to merge it now and iterate in future PRs. WDYT?

@AndersonTorres AndersonTorres force-pushed the update-from-overlay.py branch 4 times, most recently from 8abaf98 to b542ec0 Compare January 21, 2026 03:54
@AndersonTorres
Copy link
Member Author

AndersonTorres commented Jan 21, 2026

Sorry!

No problem. Your suggestions were on the point and cleaned up a lot of the code. Thank you!

WDYT?

Well, let me mark the future enhancements, then:

  • Configure the noisiness of logging
  • Support signing the commits

Besides LGTM.

@AndersonTorres AndersonTorres marked this pull request as ready for review January 21, 2026 03:55
@AndersonTorres AndersonTorres force-pushed the update-from-overlay.py branch 2 times, most recently from 0b8cdfb to c336a91 Compare January 23, 2026 16:00
@AndersonTorres
Copy link
Member Author

AndersonTorres commented Jan 23, 2026

@jian-lin
For the case when you review the code again, I get rid of pygit2 dependency. It is way cheaper to just use Git program.

Further I have rearranged the code to not rely on global structures. It was surprisingly cleaner than I expected!

@AndersonTorres AndersonTorres force-pushed the update-from-overlay.py branch 6 times, most recently from 8ce1a2e to 15bf1a3 Compare January 27, 2026 19:24
@nixpkgs-ci nixpkgs-ci bot requested a review from a team February 9, 2026 11:57
@AndersonTorres AndersonTorres marked this pull request as draft February 11, 2026 11:33
@AndersonTorres AndersonTorres marked this pull request as ready for review February 11, 2026 12:32
@AndersonTorres
Copy link
Member Author

AndersonTorres commented Feb 12, 2026

Now the logfile is "split":
- Screen shows info messages
- Logfile shows debug and info messages
Not needed. Just use redirection if you like :)

@AndersonTorres AndersonTorres force-pushed the update-from-overlay.py branch 2 times, most recently from 3f41618 to b5c3601 Compare February 20, 2026 18:11
This is a new script written in Python 3 that fetches, checks and commits the
elisp package sets from nix-community/emacs-overlay.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: emacs Text editor 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.

2 participants