diff options
author | Silvan Mosberger <silvan.mosberger@tweag.io> | 2023-12-16 03:13:12 +0100 |
---|---|---|
committer | Silvan Mosberger <silvan.mosberger@tweag.io> | 2023-12-20 17:38:03 +0100 |
commit | 92238ac52d13f6af1158eb8ae0b1132c79cdef33 (patch) | |
tree | af70788bb024d64db946f9ae0a327267dec06ccc /pkgs/by-name/README.md | |
parent | c6267887db1379c3854c4f604b121b6ff7560a7a (diff) | |
download | nixlib-92238ac52d13f6af1158eb8ae0b1132c79cdef33.tar nixlib-92238ac52d13f6af1158eb8ae0b1132c79cdef33.tar.gz nixlib-92238ac52d13f6af1158eb8ae0b1132c79cdef33.tar.bz2 nixlib-92238ac52d13f6af1158eb8ae0b1132c79cdef33.tar.lz nixlib-92238ac52d13f6af1158eb8ae0b1132c79cdef33.tar.xz nixlib-92238ac52d13f6af1158eb8ae0b1132c79cdef33.tar.zst nixlib-92238ac52d13f6af1158eb8ae0b1132c79cdef33.zip |
tests.nixpkgs-check-by-name: Create script to run locally
Due to the check soon depending on the base branch (see `--base`), the CI check can't reasonably share all code with a local check. We can still make a script to run it locally, just not sharing all code.
Diffstat (limited to 'pkgs/by-name/README.md')
-rw-r--r-- | pkgs/by-name/README.md | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pkgs/by-name/README.md b/pkgs/by-name/README.md index a7cdc57201df..948003bb5573 100644 --- a/pkgs/by-name/README.md +++ b/pkgs/by-name/README.md @@ -112,12 +112,11 @@ There's some limitations as to which packages can be defined using this structur CI performs [certain checks](../test/nixpkgs-check-by-name/README.md#validity-checks) on the `pkgs/by-name` structure. This is done using the [`nixpkgs-check-by-name` tool](../test/nixpkgs-check-by-name). -The version of this tool used is the one that corresponds to the NixOS channel of the PR base branch. -See [here](../../.github/workflows/check-by-name.yml) for details. -The tool can be run locally using +You can locally emulate the CI check using -```bash -nix-build -A tests.nixpkgs-check-by-name -result/bin/nixpkgs-check-by-name . ``` +$ ./pkgs/test/nixpkgs-check-by-name/scripts/run-local.sh master +``` + +See [here](../../.github/workflows/check-by-name.yml) for more info. |