-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
haskell.package-list: dont report broken packages to Hackage #243601
haskell.package-list: dont report broken packages to Hackage #243601
Conversation
Claiming that a hackage package is available in nixpkgs when we explicitly mark it as broken is less helpful, so let's filter them out. This changes the number of reported packages from 17137 to 10937. Fixes NixOS#243512
Excellent, thank you! Note, that a lot of packages are not marked broken themselves but are only implicitly broken by one of their dependencies. Compare our broken.yaml, which lists packages which receive the broken flag, with transitive-broken.yaml which contains packages for which we only deactivate the hydra job, so the user sees the real culprit on eval. If we do this we should hide packages from both lists. |
Should I keep the existing workflow, and extend hackage2tex to put a Or should I just parse |
You can simply check if `meta.hydraPlatforms or null == []`.On 15. Jul 2023, at 14:40, Joachim Breitner ***@***.***> wrote:
Should I keep the existing workflow, and extend hackage2tex to put a transitivelyBroken attribute into meta?
Or should I just parse ./pkgs/development/haskell-modules/configuration-hackage2nix/transitive-broken.yaml directly from ./pkgs/development/haskell-modules/package-list.nix?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because your review was requested.Message ID: ***@***.***>
|
Done. After going from 17137 to 10937 we are now down to 6624. |
Yeah, that number is exactly the right ball park. |
Doing the same to the repology report at https://repology.org/repositories/statistics/total would drop us below AUR. I wonder if people will like this… but it’s certainly the right move: repology/repology-updater#1340 |
Is this a rule that applies outside of haskell packages too, so that Repology should ignore packages with |
Well, to be fair in theory The ratio of broken to transitive broken packages in the rest of nixpkgs is unknown to me. My guess is that that we don’t have a lot of transitively broken packages in the rest of nixpkgs. In all parts of the package set which are not autogenerated broken is more thought to be a temporary thing anyway, I guess? If a package is broken for a while we can just drop it. Besides that I 100% agree that repology should ignore broken packages. |
Repology doesn't agree, it seems: repology/repology-updater#1340. Not sure if there are further good arguments. |
Well, doesn’t really impact the usability of nixpkgs, so that’s fine by me. |
@maralorn, care to merge in that case? |
Description of changes
Claiming that a hackage package is available in nixpkgs when we
explicitly mark it as broken is less helpful, so let's filter them out.
This changes the number of reported packages from 17137 to 10937.
Fixes #243512
Things done
Tested
nix-build -A haskell.package-list
.