Skip to content

maintainers/scripts/remove-old-aliases: handle more complex cases#414664

Closed
pbsds wants to merge 3 commits intoNixOS:masterfrom
pbsds:drop-aliases-1749245830
Closed

maintainers/scripts/remove-old-aliases: handle more complex cases#414664
pbsds wants to merge 3 commits intoNixOS:masterfrom
pbsds:drop-aliases-1749245830

Conversation

@pbsds
Copy link
Member

@pbsds pbsds commented Jun 7, 2025

  • maintainers/scripts/remove-old-aliases: detect and avoid more complex cases
  • maintainers/scripts/remove-old-aliases: handle inherit (x) y;
  • aliases: fix typos

This PR started as a "aliases: throw aliases before 2023" but as i dug more and more i figured that we don't have a established schedule for when to drop aliases, nor do we communicate which attributes are at risk of being dropped to the end user. That chain of thought resulted in #414658 and the two other PRs it links to.

Not feeling like I can safely any drop aliases in this current situation I instead pivoted this PR to just upstream the quick fixes I made to maintainers/scripts/remove-old-aliases.py.

This script is really not nice, I'd love to rewrite it but I have more pressing matters.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions 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 Jun 7, 2025
@nixpkgs-ci nixpkgs-ci bot added the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Jul 4, 2025
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Aug 23, 2025
@mdaniels5757 mdaniels5757 mentioned this pull request Oct 11, 2025
4 tasks
Comment on lines +85 to +86
elif '"' in line:
date_too_complex_list.append(f"{lineno:>5} {line}")
Copy link
Member

Choose a reason for hiding this comment

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

What is this supposed to be doing? It has the effect of marking all throws (among other things) as too complex, which I'm sure wasn't your intent.

@nixpkgs-ci nixpkgs-ci bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Oct 12, 2025
@wolfgangwalther
Copy link
Contributor

Superseded by #427017.

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

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 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