diff --git a/src/code_stripping.jl b/src/code_stripping.jl index 8de226b..d4680a2 100644 --- a/src/code_stripping.jl +++ b/src/code_stripping.jl @@ -636,8 +636,18 @@ function _process_multiplexer(multiplexer::String, julia_version::VersionNumber) if multiplexer == "juliaup" return `julia +$(julia_version)` elseif multiplexer == "asdf" - return readchomp(@show `asdf which julia $(julia_version)`) - else + return withenv("ASDF_JULIA_VERSION" => "$(julia_version)") do + path = readchomp(`asdf which julia`) + return `$(path)` + end + elseif multiplexer == "mise" + return withenv("MISE_JULIA_VERSION" => "$(julia_version)") do + path = readchomp(`mise which julia`) + return `$(path)` + end + elseif multiplexer == "" return Base.julia_cmd() + else + error("Unsupported multiplexer: $multiplexer") end end