formats: deprecate accidental lib.types aliases#415666
formats: deprecate accidental lib.types aliases#415666philiptaron merged 1 commit intoNixOS:masterfrom
lib.types aliases#415666Conversation
2f752f0 to
88536a4
Compare
philiptaron
left a comment
There was a problem hiding this comment.
I went looking to see how formats is used.
$ rg -wo 'formats\.\w+' --no-filename | sort | uniq -c | sort -rh
129 formats.yaml
124 formats.json
97 formats.toml
89 formats.ini
20 formats.keyValue
14 formats.iniWithGlobalSection
11 formats.hocon
11 formats.elixirConf
10 formats.text
10 formats.dataclass
9 formats.javaProperties
7 formats.php
7 formats.libconfig
6 formats.nix
5 formats.c
4 formats.asn1
4 formats.add_parser
3 formats.xml
3 formats.pythonVars
3 formats.lua
3 formats.cdn
2 formats.systemd
2 formats.nrbf
1 formats.yaml_1_1
1 formats.tone_stream
1 formats.sndfile
1 formats.png
1 formats.passthru
1 formats.native_file
1 formats.local_stream
1 formats.gitIni
We should deprecate every item that was accidentally added.
Looking at #166044, Testing locally, it seems that all "unused" attrs are deprecated by this PR: Details
Concerningly, some of the matches you had do not actually exist, although that's unrelated to this PR: Hopefully most of those are false-positives for your regex 🤞 |
Introduced in NixOS#335232 (commit 1f6ce17)
88536a4 to
feef690
Compare
No, no, these are the ones that are used, not the ones that aren't used. Apologies for the confusion. |
Gotcha. In that case I think this PR covers them all: |
|
I'm assuming this is niche/internal enough that we don't need to add a release note? |
philiptaron
left a comment
There was a problem hiding this comment.
Thanks for fixing this mistake of mine.
This comment was marked as off-topic.
This comment was marked as off-topic.
|
There's a CI failure about aliases here: #415662 😕 |
|
Bisect says that this change broke the #415719 proposed by Philip does fix the failure for me when applied to |
Introduced in #335232 (commit 1f6ce17), see discussion: #335232 (comment)
cc @philiptaron
Things done
Tested using the repl:
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.