Files
nix/tests/functional/ca/common.sh
John Ericson faca7db633 Revert "Reapply "Use the hash modulo in the derivation outputs""
This reverts commit 100e7cc337.

Unlike the last version, this fixes `--print-out-paths` for old clients

When the client lacks `featureRealisationWithPath` (worker) or version <
2.8 (serve), the daemon was sending an empty `StringMap` for
`builtOutputs`, causing `--print-out-paths` to print nothing. This
commit constructs the old wire format instead, using a dummy `sha256:`
hash since the derivation hash no longer exists. Old clients only need
the output name and path from the JSON.
2026-03-02 13:11:21 -05:00

12 lines
186 B
Bash

# shellcheck shell=bash
source ../common.sh
# Need backend to support revamped CA
requireDaemonNewerThan "2.34.0pre20251217"
enableFeatures "ca-derivations"
TODO_NixOS
restartDaemon