Disable sortedness check
Registry resolution algorithm is order-dependent, and to get the desired behavior with nixpkgs the indirect entry to `github:nixos/nixpkgs` should come after all other exact entries.
This commit is contained in:
parent
122a9ae66c
commit
147c155dfd
1 changed files with 3 additions and 3 deletions
6
ci.sh
6
ci.sh
|
|
@ -1,11 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
# Test that the flake-registry.json format is sorted & valid
|
||||
# Test that the flake-registry.json format is valid
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# Ensure current flake-registry.json file is sorted.
|
||||
nix registry list --tarball-ttl 0 --flake-registry "$PWD/flake-registry.json" \
|
||||
| grep -- '^global ' | LC_ALL=C sort -u -c
|
||||
nix registry list --tarball-ttl 0 --flake-registry "$PWD/flake-registry.json" |
|
||||
grep -- '^global '
|
||||
|
||||
nix run --flake-registry "$PWD/flake-registry.json" nixpkgs#hello
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue