From d078e66c7e5c77556ca5dfd5086962473978a417 Mon Sep 17 00:00:00 2001 From: Marcel Campello Date: Mon, 9 Oct 2023 14:58:54 -0300 Subject: [PATCH] Copy .tool-version to the enrich-classpath temporary folder Solve the bug described in the issue #3507. --- clojure.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/clojure.sh b/clojure.sh index b8f15921a..3e804d6d4 100755 --- a/clojure.sh +++ b/clojure.sh @@ -24,6 +24,15 @@ else here="$PWD" there=$(mktemp -d -t mytempdir.XXXXXX) + # copy any relevant file to the temporary folder + files_to_copy=( ".tool-versions" # asdf runtime versions configuration + ) + for file_to_copy in $files_to_copy; do + if [ -e "$file_to_copy" ]; then + cp "$file_to_copy" "$there" + fi + done + # don't let local deps.edn files interfere: cd "$there"