docs(nix): require natu checks
This commit is contained in:
@@ -43,8 +43,6 @@
|
|||||||
- Stage new files that Nix discovers through flake evaluation before testing.
|
- Stage new files that Nix discovers through flake evaluation before testing.
|
||||||
Flake evaluation ignores untracked files, so auto-loaded modules must be tracked before
|
Flake evaluation ignores untracked files, so auto-loaded modules must be tracked before
|
||||||
`nixos-rebuild --flake` can see them.
|
`nixos-rebuild --flake` can see them.
|
||||||
- After modifying Nix files, run `bazel run //src/natu:natu -- <paths>`.
|
|
||||||
Pass every modified Nix path as an argument.
|
|
||||||
|
|
||||||
## General guidelines
|
## General guidelines
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,10 @@ After editing Nix files, run:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
nix run .#fix
|
nix run .#fix
|
||||||
|
bazel run //src/natu:natu -- <modified-nix-paths>
|
||||||
```
|
```
|
||||||
|
|
||||||
Finish when `nix run .#fix` succeeds and the Nix change follows the loaded rules.
|
Pass every modified Nix path to Natu.
|
||||||
If the command fails, report the failure.
|
|
||||||
|
Finish when both commands succeed and the Nix change follows the loaded rules.
|
||||||
|
If a command fails, report the failure.
|
||||||
|
|||||||
Reference in New Issue
Block a user