-
-
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
treewide: fix runHook spelling mistakes #324603
Conversation
This was/is one of motivations of using modules to define packages. |
For others I plan to add them all and enforce CI on it. |
Because this problem is wider than I expected. Many packages aren't just lacking one of runHook, but most are lacking both. I need to come up with a better way to do full treewide changes. |
But these changes were valid, why not leaving them in? |
I don't want to let others go into staging; they are more likely to be fixed in other places and thus causing merge conflicts. |
This remembers a concept the software engineers call smell. Such a repetition of boilerplate code indicates some sneaky problem happening. |
This repo was built by thousands of people. Wherever there is an opportunity for silent mistakes, there are dozens to hundreds of them. The best way is to set boundaries and raise the lower limit. |
About CI, a long time ago rmcgibbo created a bot that looked at a PR and ran nixpkgs-hammering over it. Maybe the idea can be resurrected! |
I have some stale code somewhere where i ran nixpkgs-hammer on all of nixpkgs. It also checked all links to github issues, pull requests and commits to check if it it has been merged and tagged upstream. I need to revive that at some point, but i've been swamped recently with research work |
Description of changes
Found by #324444. When you find a cockroach under the light, there may be countless cockroaches in the dark.
Even if you do not define these pre and post, as long as you define phase yourself, you should add them. This is for convenience in overriding.
We should probably enforce CI on this.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-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.