Skip to content

Commit

Permalink
Allow comma separated packages for ]dev (#3997)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhauru authored Aug 31, 2024
1 parent bc51db7 commit 299a356
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/REPLMode/REPLMode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
Expand Down
2 changes: 2 additions & 0 deletions test/repl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 299a356

Please sign in to comment.