Skip to content

Commit 4bc74ed

Browse files
committedJan 7, 2020
nix-cage: removed default for NIX_REMOTE
1 parent 058bb55 commit 4bc74ed

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed
 

‎nix-cage

+3-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@ def get_default_config():
4141
), # [to, to, ...]
4242
},
4343
"environment": {
44-
"HOME": environ["HOME"],
45-
"TERM": environ["TERM"],
46-
"SHELL": environ["SHELL"],
47-
"NIX_REMOTE": "daemon",
44+
"HOME": environ["HOME"],
45+
"TERM": environ["TERM"],
46+
"SHELL": environ["SHELL"],
4847
},
4948
"arguments": {
5049
"command": environ["SHELL"],

‎test/config

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#! /usr/bin/env bash
22
set -euxo pipefail
33

4-
./result/bin/nix-cage --config /var/nonexistent --show-config | jq .
5-
./result/bin/nix-cage --config <(echo '{}') --show-config | jq .
4+
# default config expects a daemon to be running
5+
# but there is no daemon in ci container
6+
# ./result/bin/nix-cage --config /var/nonexistent --show-config | jq .
7+
8+
./result/bin/nix-cage --config <(echo '{}') --show-config | jq .

0 commit comments

Comments
 (0)
Please sign in to comment.