mirror of
https://github.com/NixOS/nix
synced 2025-07-10 08:53:55 +02:00
parent
612fc76020
commit
cc9fe4dee7
13 changed files with 102 additions and 106 deletions
|
@ -8,12 +8,12 @@ STORE_INFO_JSON=$(nix store info --json)
|
|||
echo "$STORE_INFO" | grep "Store URL: ${NIX_REMOTE}"
|
||||
|
||||
if [[ -v NIX_DAEMON_PACKAGE ]] && isDaemonNewer "2.7.0pre20220126"; then
|
||||
DAEMON_VERSION=$($NIX_DAEMON_PACKAGE/bin/nix daemon --version | cut -d' ' -f3)
|
||||
DAEMON_VERSION=$("$NIX_DAEMON_PACKAGE"/bin/nix daemon --version | cut -d' ' -f3)
|
||||
echo "$STORE_INFO" | grep "Version: $DAEMON_VERSION"
|
||||
[[ "$(echo "$STORE_INFO_JSON" | jq -r ".version")" == "$DAEMON_VERSION" ]]
|
||||
fi
|
||||
|
||||
expect 127 NIX_REMOTE=unix:$PWD/store nix store info || \
|
||||
expect 127 NIX_REMOTE=unix:"$PWD"/store nix store info || \
|
||||
fail "nix store info on a non-existent store should fail"
|
||||
|
||||
TODO_NixOS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue