From 3a8fb4956e280d67cb528d46a4405422be78d8fd Mon Sep 17 00:00:00 2001 From: Markus Hauru Date: Sun, 1 Sep 2024 00:17:47 +0200 Subject: [PATCH] Allow comma separated packages for ]dev (#3997) (cherry picked from commit 299a356100f54215388502148979189aff760822) --- src/REPLMode/REPLMode.jl | 2 +- test/repl.jl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/REPLMode/REPLMode.jl b/src/REPLMode/REPLMode.jl index 7d014d8442..edf4c968aa 100644 --- a/src/REPLMode/REPLMode.jl +++ b/src/REPLMode/REPLMode.jl @@ -164,7 +164,7 @@ Base.@kwdef mutable struct Statement end function lex(cmd::String)::Vector{QString} - replace_comma = (nothing!=match(r"^(add|rm|remove|status|precompile)+\s", cmd)) + replace_comma = (nothing!=match(r"^(add|dev|develop|rm|remove|status|precompile)+\s", cmd)) in_doublequote = false in_singlequote = false qstrings = QString[] diff --git a/test/repl.jl b/test/repl.jl index f1d0488358..6b4b32fef8 100644 --- a/test/repl.jl +++ b/test/repl.jl @@ -122,6 +122,8 @@ temp_pkg_dir(;rm=false) do project_path; cd(project_path) do; mktempdir() do tmp_dev_dir withenv("JULIA_PKG_DEVDIR" => tmp_dev_dir) do pkg"develop Example" + pkg"develop Example,PackageCompiler" + pkg"develop Example PackageCompiler" # Copy the manifest + project and see that we can resolve it in a new environment # and get all the packages installed