about summary refs log tree commit diff
path: root/pkgs/test/nixpkgs-check-by-name/README.md
diff options
context:
space:
mode:
authorSilvan Mosberger <silvan.mosberger@tweag.io>2023-12-15 00:47:34 +0100
committerSilvan Mosberger <silvan.mosberger@tweag.io>2023-12-15 01:01:14 +0100
commit53b43ce0e322eb4fc8daaad8a5a597155d42379a (patch)
tree7a77e65582ed8068c5672fe653290ae40ce7cd59 /pkgs/test/nixpkgs-check-by-name/README.md
parentbb08bfc2d37f9c1dbaf6f585fded65bf77a67e61 (diff)
tests.nixpkgs-check-by-name: Fix and document behavior without --base
Previously, not passing `--base` would enforce the most strict checks.
While there's currently no actual violation of these stricter checks,
this does not match the previous behavior.

This won't matter once CI passes `--base`, the code handling the
optionality can be removed then.
Diffstat (limited to 'pkgs/test/nixpkgs-check-by-name/README.md')
-rw-r--r--pkgs/test/nixpkgs-check-by-name/README.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/test/nixpkgs-check-by-name/README.md b/pkgs/test/nixpkgs-check-by-name/README.md
index c906eaffc974b..8ed23204decad 100644
--- a/pkgs/test/nixpkgs-check-by-name/README.md
+++ b/pkgs/test/nixpkgs-check-by-name/README.md
@@ -10,8 +10,13 @@ This API may be changed over time if the CI workflow making use of it is adjuste
 
 - Command line: `nixpkgs-check-by-name [--base <BASE_NIXPKGS>] <NIXPKGS>`
 - Arguments:
-  - `<BASE_NIXPKGS>`: The path to the Nixpkgs to check against
-  - `<NIXPKGS>`: The path to the Nixpkgs to check
+  - `<NIXPKGS>`: The path to the Nixpkgs to check.
+  - `<BASE_NIXPKGS>`: The path to the Nixpkgs to use as the base to compare `<NIXPKGS>` against.
+    This allows the strictness of checks to increase over time by only preventing _new_ violations from being introduced,
+    while allowing violations that already existed.
+
+    If not specified, all violations of stricter checks are allowed.
+    However, this flag will become required once CI passes it.
 - Exit code:
   - `0`: If the [validation](#validity-checks) is successful
   - `1`: If the [validation](#validity-checks) is not successful