Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check-meta: fix hasNoMaintainers for missing maintainers attr #357674

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asymmetric
Copy link
Contributor

Previously, when meta.maintainers wasn't defined, hasNoMaintainers would return false, since it relied on its presence to check for its length.

Now, it returns true, which seems more logical.

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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (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 the 6.topic: stdenv Standard environment label Nov 20, 2024
@asymmetric asymmetric changed the title check-meta: fix hasNoMaintainers for missing maintainers attr check-meta: fix hasNoMaintainers for missing maintainers attr Nov 20, 2024
Copy link
Member

@emilazy emilazy left a comment

Choose a reason for hiding this comment

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

SGTM in principle. I assume length (attrs.meta.maintainers or [ ]) == 0 is probably bad for eval perf or something.

This will pick up things like the majority of trivial builders etc. that have no meta, I don’t know if that’s a concern. It might even complain about fetchers? That might be why it’s like that currently.

@RossComputerGuy
Copy link
Member

It might even complain about fetchers? That might be why it’s like that currently.

Could add a check if it's got outputMode set and skip when it does.

I assume length (attrs.meta.maintainers or [ ]) == 0 is probably bad for eval perf or something.

Yeah, maybe doing a hasAttr first instead of or might be better.

@asymmetric
Copy link
Contributor Author

asymmetric commented Nov 21, 2024

I assume length (attrs.meta.maintainers or [ ]) == 0 is probably bad for eval perf or something.

@emilazy in my (probably naive) testing with hyperfine, they're ~equivalent in terms of speed:

Command Mean [ms] Min [ms] Max [ms] Relative
bash a.sh 16.6 ± 0.5 15.5 20.2 1.00
bash b.sh 16.7 ± 0.7 15.4 22.7 1.00 ± 0.05

Where:

a.sh

#!/usr/bin/env bash
nix-instantiate --eval -E 'let attrs = { foo = "bar"; }; in !(attrs ? meta.maintainers) || builtins.length attrs.meta.maintainers == 0'

b.sh

#!/usr/bin/env bash
nix-instantiate --eval -E 'let attrs = { foo = "bar"; }; in builtins.length (attrs.meta.maintainers or [ ]) == 0'

And the hyperfine invocation was

hyperfine --runs 1000 'bash a.sh' 'bash b.sh' --export-markdown out.md

hyperfine gave this warning though:

Warning: Statistical outliers were detected. Consider re-running this benchmark on a quiet system without any interferences from other programs. It might help to use the '--warmup' or '--prepare' options.

@ofborg ofborg 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 21, 2024
Copy link
Contributor

@philiptaron philiptaron left a comment

Choose a reason for hiding this comment

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

Requesting changes for simplification.

Previously, when meta.maintainers wasn't defined, hasNoMaintainers would
return false, since it relied on its presence to check for its length.

Now, it returns true.
@asymmetric
Copy link
Contributor Author

asymmetric commented Nov 24, 2024

Thanks all for the "code golfing" 😅 In my testing with hyperfine (see above), all solutions were basically equivalent in terms of run time (haven’t tested memory usage though). I still ended up implementing @zimbatm's suggestion, since it's much clearer than my first attempt, and avoids a function call.

Still, we haven't addressed the issue of false positives with fetchers & co.

@RossComputerGuy could you expand on what you mean by

Could add a check if it's got outputMode set and skip when it does.

@asymmetric
Copy link
Contributor Author

I'm not sure what the CI failure is about...

@mweinelt mweinelt closed this Nov 24, 2024
@mweinelt mweinelt reopened this Nov 24, 2024
@mweinelt
Copy link
Member

This will pick up things like the majority of trivial builders etc. that have no meta,

Yes, I think we're changing the previous semantics of 4def222.

@RossComputerGuy
Copy link
Member

could you expand on what you mean by

Could add a check if it's got outputMode set and skip when it does.

outputMode is essentially the main attribute which tells Nix the derivation has a fixed output which all fetchers have a fixed output. The only thing to figure out will be trivial builders.

@asymmetric
Copy link
Contributor Author

@RossComputerGuy thanks for the pointer (turns out the correct attr was outputHash).

The only thing to figure out will be trivial builders.

I believe hooks as well, since they're not FODs.

@mweinelt
Copy link
Member

mweinelt commented Nov 25, 2024

At which point it would be more helpful to check for version or src to confirm it is a package.

@asymmetric
Copy link
Contributor Author

asymmetric commented Nov 25, 2024

Changing the code to

hasNoMaintainers = attrs: attrs ? src && attrs.meta.maintainers or [ ] == [ ];

and building the isoImage, I can see that this does filter out fetchers and hooks, but there are some false positives, e.g.:

full output
trace: Package mpfr-4.2.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/mpfr/default.nix:59 has no maintainers, continuing anyway.
trace: Package libmpc-1.3.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libmpc/default.nix:27 has no maintainers, continuing anyway.
trace: Package libtool-2.4.7 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/tools/misc/libtool/libtool2.nix:57 has no maintainers, continuing anyway.
trace: Package libunistring-1.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libunistring/default.nix:46 has no maintainers, continuing anyway.
trace: Package mpfr-4.2.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/mpfr/default.nix:59 has no maintainers, continuing anyway.
trace: Package libmpc-1.3.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libmpc/default.nix:27 has no maintainers, continuing anyway.
trace: Package libtool-2.4.7 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/tools/misc/libtool/libtool2.nix:57 has no maintainers, continuing anyway.
trace: Package gawk-5.2.2 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/tools/text/gawk/default.nix:68 has no maintainers, continuing anyway.
trace: Package patch-2.7.6 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/tools/text/gnupatch/default.nix:47 has no maintainers, continuing anyway.
trace: Package libtool-2.4.7 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/tools/misc/libtool/libtool2.nix:57 has no maintainers, continuing anyway.
trace: Package pcre-8.45 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/pcre/default.nix:56 has no maintainers, continuing anyway.
trace: Package itstool-2.0.7 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/tools/misc/itstool/default.nix:38 has no maintainers, continuing anyway.
trace: Package gnu-efi-3.0.15 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/gnu-efi/default.nix:34 has no maintainers, continuing anyway.
trace: Package python3.11-pygments-2.17.2 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/pygments/default.nix:51 has no maintainers, continuing anyway.
trace: Package python3.11-editables-0.5 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/editables/default.nix:29 has no maintainers, continuing anyway.
trace: Package python3.11-lxml-5.1.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/lxml/default.nix:57 has no maintainers, continuing anyway.
trace: Package python3.11-iniconfig-2.0.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/iniconfig/default.nix:37 has no maintainers, continuing anyway.
trace: Package libmpc-1.3.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libmpc/default.nix:27 has no maintainers, continuing anyway.
trace: Package mpfr-4.2.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/mpfr/default.nix:59 has no maintainers, continuing anyway.
trace: Package sharutils-4.15.2 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/tools/archivers/sharutils/default.nix:67 has no maintainers, continuing anyway.
trace: Package libuv-1.48.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libuv/default.nix:119 has no maintainers, continuing anyway.
trace: Package libaio-0.3.113 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/os-specific/linux/libaio/default.nix:29 has no maintainers, continuing anyway.
trace: Package python3.11-iniconfig-2.0.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/iniconfig/default.nix:37 has no maintainers, continuing anyway.
trace: Package python3.11-editables-0.5 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/editables/default.nix:29 has no maintainers, continuing anyway.
trace: Package python3.11-lxml-5.1.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/lxml/default.nix:57 has no maintainers, continuing anyway.
trace: Package python3.11-babel-2.14.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/babel/default.nix:55 has no maintainers, continuing anyway.
trace: Package python3.11-sphinx-7.3.7 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinx/default.nix:139 has no maintainers, continuing anyway.
trace: Package xmlto-0.0.28 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/tools/typesetting/xmlto/default.nix:92 has no maintainers, continuing anyway.
trace: Package opensp-1.5.2 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/tools/text/sgml/opensp/default.nix:56 has no maintainers, continuing anyway.
trace: Package python3.11-execnet-2.1.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/execnet/default.nix:62 has no maintainers, continuing anyway.
trace: Package python3.11-zipp-3.18.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/zipp/default.nix:43 has no maintainers, continuing anyway.
trace: Package python3.11-babel-2.14.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/babel/default.nix:55 has no maintainers, continuing anyway.
trace: Package python3.11-sphinxcontrib-applehelp-1.0.8 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinxcontrib-applehelp/default.nix:31 has no maintainers, continuing anyway.
trace: Package python3.11-sphinxcontrib-devhelp-1.0.6 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinxcontrib-devhelp/default.nix:31 has no maintainers, continuing anyway.
trace: Package python3.11-sphinxcontrib-htmlhelp-2.0.5 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinxcontrib-htmlhelp/default.nix:31 has no maintainers, continuing anyway.
trace: Package python3.11-sphinxcontrib-jsmath-1.0.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinxcontrib-jsmath/default.nix:25 has no maintainers, continuing anyway.
trace: Package python3.11-sphinxcontrib-qthelp-1.0.7 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinxcontrib-qthelp/default.nix:31 has no maintainers, continuing anyway.
trace: Package python3.11-sphinxcontrib-serializinghtml-1.1.10 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinxcontrib-serializinghtml/default.nix:31 has no maintainers, continuing anyway.
trace: Package python3.11-mock-5.1.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/mock/default.nix:26 has no maintainers, continuing anyway.
trace: Package giflib-5.2.2 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/giflib/default.nix:57 has no maintainers, continuing anyway.
trace: Package python3.11-sphinx-7.3.7 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinx/default.nix:139 has no maintainers, continuing anyway.
trace: Package gd-2.3.3 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/gd/default.nix:62 has no maintainers, continuing anyway.
trace: Package freefont-ttf-20120503 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/data/fonts/freefont-ttf/default.nix:22 has no maintainers, continuing anyway.
trace: Package libthai-0.1.29 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libthai/default.nix:26 has no maintainers, continuing anyway.
trace: Package libdatrie-2019-12-20 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libdatrie/default.nix:41 has no maintainers, continuing anyway.
trace: Package python3.11-psutil-5.9.8 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/psutil/default.nix:71 has no maintainers, continuing anyway.
trace: Package libassuan-2.5.7 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libassuan/default.nix:37 has no maintainers, continuing anyway.
trace: Package libksba-1.6.6 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libksba/default.nix:28 has no maintainers, continuing anyway.
trace: Package libelf-0.8.13 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libelf/default.nix:56 has no maintainers, continuing anyway.
trace: Package python3.11-ptyprocess-0.7.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/ptyprocess/default.nix:38 has no maintainers, continuing anyway.
trace: Package python3.11-wcwidth-0.2.13 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/wcwidth/default.nix:32 has no maintainers, continuing anyway.
trace: Package python3.11-hypothesis-6.100.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/hypothesis/default.nix:114 has no maintainers, continuing anyway.
trace: Package python3.11-attrs-23.2.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/attrs/default.nix:54 has no maintainers, continuing anyway.
trace: Package python3.11-sortedcontainers-2.4.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sortedcontainers/default.nix:34 has no maintainers, continuing anyway.
trace: Package python3.11-pyopenssl-24.1.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/pyopenssl/default.nix:99 has no maintainers, continuing anyway.
trace: Package python3.11-sphinx-7.3.7 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinx/default.nix:139 has no maintainers, continuing anyway.
trace: Package python3.11-editables-0.5 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/editables/default.nix:29 has no maintainers, continuing anyway.
trace: Package python3.11-iniconfig-2.0.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/iniconfig/default.nix:37 has no maintainers, continuing anyway.
trace: Package python3.11-execnet-2.1.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/execnet/default.nix:62 has no maintainers, continuing anyway.
trace: Package python3.11-zipp-3.18.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/zipp/default.nix:43 has no maintainers, continuing anyway.
trace: Package python3.11-pygments-2.17.2 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/pygments/default.nix:51 has no maintainers, continuing anyway.
trace: Package python3.11-babel-2.14.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/babel/default.nix:55 has no maintainers, continuing anyway.
trace: Package python3.11-sphinxcontrib-applehelp-1.0.8 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinxcontrib-applehelp/default.nix:31 has no maintainers, continuing anyway.
trace: Package python3.11-sphinxcontrib-devhelp-1.0.6 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinxcontrib-devhelp/default.nix:31 has no maintainers, continuing anyway.
trace: Package python3.11-sphinxcontrib-htmlhelp-2.0.5 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinxcontrib-htmlhelp/default.nix:31 has no maintainers, continuing anyway.
trace: Package python3.11-sphinxcontrib-jsmath-1.0.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinxcontrib-jsmath/default.nix:25 has no maintainers, continuing anyway.
trace: Package python3.11-sphinxcontrib-qthelp-1.0.7 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinxcontrib-qthelp/default.nix:31 has no maintainers, continuing anyway.
trace: Package python3.11-sphinxcontrib-serializinghtml-1.1.10 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/sphinxcontrib-serializinghtml/default.nix:31 has no maintainers, continuing anyway.
trace: Package python3.11-pretend-1.0.9 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/pretend/default.nix:28 has no maintainers, continuing anyway.
trace: Package python3.11-setuptools-rust-1.9.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/setuptools-rust/default.nix:44 has no maintainers, continuing anyway.
trace: Package python3.11-pyasn1-0.6.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/pyasn1/default.nix:26 has no maintainers, continuing anyway.
trace: Package python3.11-pyasn1-modules-0.4.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/pyasn1-modules/default.nix:34 has no maintainers, continuing anyway.
trace: Package python3.11-uvloop-0.20.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/uvloop/default.nix:99 has no maintainers, continuing anyway.
trace: Package python3.11-gunicorn-21.2.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/gunicorn/default.nix:62 has no maintainers, continuing anyway.
trace: Package python3.11-tornado-6.3.3 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/tornado/default.nix:69 has no maintainers, continuing anyway.
trace: Package python3.11-cloudpickle-3.0.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/cloudpickle/default.nix:45 has no maintainers, continuing anyway.
trace: Package maturin-1.5.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/tools/rust/maturin/default.nix:31 has no maintainers, continuing anyway.
trace: Package python3.11-poetry-core-1.9.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/poetry-core/default.nix:64 has no maintainers, continuing anyway.
trace: Package libopus-1.5.2 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libopus/default.nix:73 has no maintainers, continuing anyway.
trace: Package soxr-0.1.3 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/applications/misc/audio/soxr/default.nix:22 has no maintainers, continuing anyway.
trace: Package fftw-single-3.3.10 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/fftw/default.nix:75 has no maintainers, continuing anyway.
trace: Package libtheora-1.1.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libtheora/default.nix:32 has no maintainers, continuing anyway.
trace: Package python3.11-contourpy-1.2.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/contourpy/default.nix:77 has no maintainers, continuing anyway.
trace: Package python3.11-brotli-1.1.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/brotli/default.nix:31 has no maintainers, continuing anyway.
trace: Package python3.11-uharfbuzz-0.39.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/uharfbuzz/default.nix:42 has no maintainers, continuing anyway.
trace: Package python3.11-kiwisolver-1.4.5 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/kiwisolver/default.nix:33 has no maintainers, continuing anyway.
trace: Package python3.11-tzdata-2024.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/tzdata/default.nix:32 has no maintainers, continuing anyway.
trace: Package python3.11-pytest-sugar-1.0.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/pytest-sugar/default.nix:34 has no maintainers, continuing anyway.
trace: Package python3.11-colorama-0.4.6 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/colorama/default.nix:26 has no maintainers, continuing anyway.
trace: Package llhttp-9.2.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/llhttp/default.nix:34 has no maintainers, continuing anyway.
trace: Package python3.11-jedi-0.19.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/jedi/default.nix:58 has no maintainers, continuing anyway.
trace: Package python3.11-prompt-toolkit-3.0.43 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/prompt-toolkit/default.nix:40 has no maintainers, continuing anyway.
trace: Package jansson-2.14 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/jansson/default.nix:24 has no maintainers, continuing anyway.
trace: Package rapidcheck-0-unstable-2023-12-14 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/rapidcheck/default.nix:35 has no maintainers, continuing anyway.
trace: Package mpfr-4.2.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/mpfr/default.nix:59 has no maintainers, continuing anyway.
trace: Package libmpc-1.3.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libmpc/default.nix:27 has no maintainers, continuing anyway.
trace: Package libtool-2.4.7 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/tools/misc/libtool/libtool2.nix:57 has no maintainers, continuing anyway.
trace: Package libunistring-1.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libunistring/default.nix:46 has no maintainers, continuing anyway.
trace: Package mpfr-4.2.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/mpfr/default.nix:59 has no maintainers, continuing anyway.
trace: Package libmpc-1.3.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libmpc/default.nix:27 has no maintainers, continuing anyway.
trace: Package libtool-2.4.7 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/tools/misc/libtool/libtool2.nix:57 has no maintainers, continuing anyway.
trace: Package gawk-5.2.2 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/tools/text/gawk/default.nix:68 has no maintainers, continuing anyway.
trace: Package patch-2.7.6 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/tools/text/gnupatch/default.nix:47 has no maintainers, continuing anyway.
trace: Package mpfr-4.2.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/mpfr/default.nix:59 has no maintainers, continuing anyway.
trace: Package libmpc-1.3.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/libmpc/default.nix:27 has no maintainers, continuing anyway.
trace: Package python3.11-dbus-python-1.3.2 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/dbus-python/default.nix:99 has no maintainers, continuing anyway.
trace: Package dbus-glib-0.112 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/libraries/dbus-glib/default.nix:34 has no maintainers, continuing anyway.
trace: Package sudo-1.9.15p5 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/tools/security/sudo/default.nix:77 has no maintainers, continuing anyway.
trace: Package bash-completion-2.13.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/shells/bash/bash-completion/default.nix:69 has no maintainers, continuing anyway.
trace: Package efibootmgr-18 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/tools/system/efibootmgr/default.nix:26 has no maintainers, continuing anyway.
trace: Package parted-3.6 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/tools/misc/parted/default.nix:49 has no maintainers, continuing anyway.
trace: Package libluv-1.44.2-1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/lua-modules/generated-packages.nix:2292 has no maintainers, continuing anyway.
trace: Package luajit2.1-luabitop-1.0.2-3 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/lua-modules/generated-packages.nix:1526 has no maintainers, continuing anyway.
trace: Package luajit2.1-mpack-1.0.12-0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/lua-modules/generated-packages.nix:2474 has no maintainers, continuing anyway.
trace: Package luajit2.1-mpack-1.0.12-0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/lua-modules/generated-packages.nix:2474 has no maintainers, continuing anyway.
trace: Package luajit2.1-luabitop-1.0.2-3 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/lua-modules/generated-packages.nix:1526 has no maintainers, continuing anyway.
trace: Package luajit2.1-mpack-1.0.12-0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/lua-modules/generated-packages.nix:2474 has no maintainers, continuing anyway.
trace: Package hdparm-9.65 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/os-specific/linux/hdparm/default.nix:18 has no maintainers, continuing anyway.
trace: Package python3.11-nose2-0.14.1 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/nose2/default.nix:45 has no maintainers, continuing anyway.
trace: Package nixos-render-docs-0.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/tools/nix/nixos-render-docs/default.nix:63 has no maintainers, continuing anyway.
trace: Package python3.11-iniconfig-2.0.0 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/iniconfig/default.nix:37 has no maintainers, continuing anyway.
trace: Package python3.11-editables-0.5 in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/development/python-modules/editables/default.nix:29 has no maintainers, continuing anyway.
trace: Package nixos-option in /nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/tools/nix/nixos-option/default.nix:11 has no maintainers, continuing anyway.

@mweinelt
Copy link
Member

Are we slowly but surely circling back to checking for meta?

@emilazy
Copy link
Member

emilazy commented Nov 25, 2024

I like the idea of weakening attrs ? meta.maintainers to just attrs ? meta. Seems like it should have fewer false positives and fairly reasonably capture what we’re looking for here.

@asymmetric
Copy link
Contributor Author

Problem is that (at least some) hooks have meta:

nix-repl> pkgs.updateAutotoolsGnuConfigScriptsHook.meta
{ available = true; broken = false; insecure = false; name = "update-autotools-gnu-config-scripts-hook"; outputsToInstall = [ ... ]; position = "/nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/build-support/trivial-builders/default.nix:68"; unfree = false; unsupported = false; }

nix-repl> pkgs.autoreconfHook.meta
{ available = true; broken = false; insecure = false; name = "autoreconf-hook"; outputsToInstall = [ ... ]; position = "/nix/store/gl89a89vprcbhblycf81r2mx7ypzkiq0-ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/pkgs/build-support/trivial-builders/default.nix:68"; unfree = false; unsupported = false; }

I don't understand why they do though, given how they're defined: 1 2.

@emilazy
Copy link
Member

emilazy commented Nov 25, 2024

Well, perhaps hooks ought to have maintainers…

@asymmetric
Copy link
Contributor Author

@emilazy I mean I don't disagree (at all, in fact), but how to go about that?

Seems like complexity explosion, from a 1-liner to an fuzzily defined social problem 😅

@emilazy
Copy link
Member

emilazy commented Nov 26, 2024

It’s an off‐by‐default warning, right? There’s a lot of stuff in the tree with no maintainers already. Warning about more of it only seems bad if it’s stuff that we don’t care about the maintainers for (like fetcher calls); for hooks it seems okay to me personally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: stdenv Standard environment 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.

6 participants