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

generate-programs-index finds wrong attrPath for "dig" binary #26

Closed
delroth opened this issue Sep 23, 2019 · 2 comments
Closed

generate-programs-index finds wrong attrPath for "dig" binary #26

delroth opened this issue Sep 23, 2019 · 2 comments

Comments

@delroth
Copy link
Contributor

delroth commented Sep 23, 2019

sqlite> select * from Programs where name = "dig";
dig|x86_64-linux|bind

Which is technically correct: dig is part of the bind derivation, but not in its default output. Instead, it's part of the dnsutils output which does not get installed by a simple nix-shell -p bind (it needs either nix-shell -p bind.dnsutils or nix-shell -p dnsutils since there is an alias in top-level).

Something somewhere in generate-programs-index should probably be more output-aware, but I lack the ability to easily test changes so this is just an issue report and not a PR :-)

@brookst
Copy link

brookst commented Feb 17, 2024

This issue seems to be solved now. I get the following:

sqlite> select * from Programs where name = "dig";
dig|aarch64-linux|dig
dig|x86_64-linux|dig

I'm not sure what fixed this but I ran into a different issue; tsig-keygen and ddns-confgen are listed as part of the dig package, but are not outputs there. So command-not-found erroneously suggested to bring in dig for them, even if it's already enabled.

I'm still trying to find where they actually are and why they have the wrong path in programs.db.

@zimbatm zimbatm closed this as completed Feb 19, 2024
@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Feb 19, 2024

dupe of NixOS/nixpkgs#129713

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants