Commit 903a2aa
committed
secretKeyFiles - move to JSON
Using a JSON string array. It does not work super great without
modifying more of the parsing logic:
+(signing.sh:115) nix copy --to 'file:///tmp/nix-shell.9u6yin/nix-test/main/signing/storemultisig?secret-keys=["/tmp/nix-shell.9u6yin/nix-test/main/signing/sk1","/tmp/nix-shell.9u6yin/nix-test/main/signing/sk2"]' /tmp/nix-shell.9u6yin/nix-test/main/signing/store/v6vdfqbxk9q56m6gcvk4h7hyq842y18q-dependencies-top
error: Cannot parse Nix store 'file:///tmp/nix-shell.9u6yin/nix-test/main/signing/storemultisig?secret-keys=["/tmp/nix-shell.9u6yin/nix-test/main/signing/sk1","/tmp/nix-shell.9u6yin/nix-test/main/signing/sk2"]'
Try 'nix --help' for more information.
++(signing.sh:115) onError
++(/home/ninjatrappeur/code-root/github.com/NixOS/nix/tests/functional/common/functions.sh:241) set +x
signing.sh: test failed at:
main in signing.sh:115
Besides, the syntax is not great from the CLI: we need to escape the
double quotes provided we want to do some sort of variable
substitution.
nix copy --to \
"file://$TEST_ROOT/storemultisig?secret-keys=[\"$TEST_ROOT/sk1\",\"$TEST_ROOT/sk2\"]" \
"$outPath"
:/1 parent e12369a commit 903a2aa
File tree
2 files changed
+18
-5
lines changed- src/libstore
- tests/functional
2 files changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
39 | 51 | | |
40 | | - | |
| 52 | + | |
| 53 | + | |
41 | 54 | | |
42 | 55 | | |
43 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments