From 33d91a5af4aea758beacd6388b4b825e90d47d17 Mon Sep 17 00:00:00 2001 From: George Macon Date: Thu, 28 Mar 2024 20:54:02 -0400 Subject: [PATCH] Pass arguments to flake_env in the correct order This prevents flake_env from deleting the directory containing the .envrc file if the flake specifier is ".". In 7759d2a, the order of the arguments was swapped: In bin/flake_env.re - let flake_specifier = argv[1]; - let layout_directory = argv[2]; In lib/flake_env__util.re + let layout_directory = argv[1]; + let flake_specifier = argv[2]; but the direnvrc was not updated to match. Fixes: 7759d2ac6aeedaa08b71e3e7e4132ea86d2707bb --- direnvrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direnvrc b/direnvrc index 85cc4bc..a7c0a7a 100644 --- a/direnvrc +++ b/direnvrc @@ -41,7 +41,7 @@ use_flake_env() { local ld=$(direnv_layout_dir) export direnv - eval "$(@flake_env@ "${1:-"."}" "$ld")" + eval "$(@flake_env@ "$ld" "${1:-"."}")" export -n direnv