Merge pull request #177219 from kenranunderscore/correct-nixpkgs-review-invocations-in-docs

doc/contributing: replace outdated 'nix run' syntax for nixpkgs-review
This commit is contained in:
Jan Tojnar 2022-07-21 14:40:39 +02:00 committed by GitHub
commit c80ea7da04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,24 +167,30 @@ Packages with automated tests are much more likely to be merged in a timely fash
### Tested compilation of all pkgs that depend on this change using `nixpkgs-review` {#submitting-changes-tested-compilation} ### Tested compilation of all pkgs that depend on this change using `nixpkgs-review` {#submitting-changes-tested-compilation}
If you are updating a packages version, you can use nixpkgs-review to make sure all packages that depend on the updated package still compile correctly. The `nixpkgs-review` utility can look for and build all dependencies either based on uncommited changes with the `wip` option or specifying a github pull request number. If you are updating a packages version, you can use `nixpkgs-review` to make sure all packages that depend on the updated package still compile correctly. The `nixpkgs-review` utility can look for and build all dependencies either based on uncommitted changes with the `wip` option or specifying a GitHub pull request number.
review changes from pull request number 12345: Review changes from pull request number 12345:
```ShellSession ```ShellSession
nix run nixpkgs.nixpkgs-review -c nixpkgs-review pr 12345 nix-shell -p nixpkgs-review --run "nixpkgs-review pr 12345"
``` ```
review uncommitted changes: Alternatively, with flakes (and analogously for the other commands below):
```ShellSession ```ShellSession
nix run nixpkgs.nixpkgs-review -c nixpkgs-review wip nix run nixpkgs#nixpkgs-review -- pr 12345
``` ```
review changes from last commit: Review uncommitted changes:
```ShellSession ```ShellSession
nix run nixpkgs.nixpkgs-review -c nixpkgs-review rev HEAD nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
```
Review changes from last commit:
```ShellSession
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
``` ```
### Tested execution of all binary files (usually in `./result/bin/`) {#submitting-changes-tested-execution} ### Tested execution of all binary files (usually in `./result/bin/`) {#submitting-changes-tested-execution}