From 9adfd9b8ad48f631c935d5a146bbf98a3cf603cb Mon Sep 17 00:00:00 2001 From: Goldstein Date: Mon, 5 Aug 2024 16:26:39 +0300 Subject: src/libcmd/repl.cc: allow :log /path/to/store.drv This adds a second form to the `:log` command: it now can accept a derivation path in addition to a derivation expression. As derivation store paths start with `/nix/store`, this is not ambiguous. Resolves: https://git.lix.systems/lix-project/lix/issues/51 Change-Id: Iebc7b011537e7012fae8faed4024ea1b8fdc81c3 --- tests/functional/repl.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/functional/repl.sh b/tests/functional/repl.sh index 22c69e20b..1f2c2e93f 100644 --- a/tests/functional/repl.sh +++ b/tests/functional/repl.sh @@ -271,3 +271,8 @@ a = ''test string that we'll grep later'' :e identity a " "undefined variable" + +# Test :log with derivation paths. +simple_path="$(nix-instantiate "$testDir/simple.nix")" +# `PATH=` is a part of build log. +testReplResponseNoRegex ":log ${simple_path}" "PATH=" -- cgit v1.2.3