Skip to content

Recursive type deprecation, again#248444

Draft
infinisil wants to merge 5 commits intoNixOS:masterfrom
tweag:recursive-deprecation
Draft

Recursive type deprecation, again#248444
infinisil wants to merge 5 commits intoNixOS:masterfrom
tweag:recursive-deprecation

Conversation

@infinisil
Copy link
Member

Description of changes

Very drafty retry of the reverted #99132, switching back string to be deprecated using deprecationMessage

While I could not reproduce any infinite recursion even with the original code as reported in #99132 (comment), the code can be improved a bunch to prevent that in any case.

Unfortunately a new lib.types.fix is necessary to implement this correctly, and all current recursive types should switch to that instead.

This reverts commit 5075a51.

There's no option location in the lib.warn message, not even if you make
it fail using NIX_ABORT_ON_WARN

So let's revert the switch to lib.warn for now until a better solution
is figured out
…ely""

This reverts commit a36e676.

There was one report saying that this broke a configuration, but I
cannot reproduce this:
NixOS#99132 (comment)

We should give this another go
@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 6.topic: module system About "NixOS" module system internals 6.topic: lib The Nixpkgs function library labels Aug 11, 2023
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Aug 11, 2023
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 19, 2024
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 6, 2024
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 6, 2024
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 2, 2025
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 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: lib The Nixpkgs function library 6.topic: module system About "NixOS" module system internals 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants