mirror of
https://github.com/NixOS/flake-registry.git
synced 2025-11-08 11:36:12 +01:00
Additionally, ensure the latest contents of `flake-registry.json` are used when running `ci.sh`. Without `--tarball-ttl 0`, old contents can be reused across multiple runs. This shouldn't be an issue in CI, but it's helpful when running `ci.sh` manually, during development.
11 lines
367 B
Bash
Executable file
11 lines
367 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Test that the flake-registry.json format is sorted & 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 run --flake-registry "$PWD/flake-registry.json" nixpkgs#hello
|