From 71d81b14a2cc556a069e9ad24d8354d2005d7fc2 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 5 Oct 2024 12:13:44 -0500 Subject: [PATCH] Setting a profile will mess with imports. --- src/boot/boot.janet | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index 56a1a1a5..d0ab6acb 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -4667,7 +4667,8 @@ (setdyn *lint-error* error-level) (setdyn *lint-warn* error-level) (when-let [profile.janet (dyn *profilepath*)] - (dofile profile.janet :exit true :env env)) + (dofile profile.janet :exit true :env env) + (put env *current-file* nil)) (repl getchunk nil env))))) ###