Skip to content

Commit

Permalink
fix: add --strict nix-instantiate to support builtins.readFile
Browse files Browse the repository at this point in the history
  • Loading branch information
tarantoj committed Mar 20, 2024
1 parent 8cb01a0 commit e2ad357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/agenix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function edit {
}

function rekey {
FILES=$( (@nixInstantiate@ --json --eval -E "(let rules = import $RULES; in builtins.attrNames rules)" | @jqBin@ -r .[]) || exit 1)
FILES=$( (@nixInstantiate@ --json --eval --strict -E "(let rules = import $RULES; in builtins.attrNames rules)" | @jqBin@ -r .[]) || exit 1)

for FILE in $FILES
do
Expand Down

0 comments on commit e2ad357

Please sign in to comment.