From 0df656e8f3f5cd0c7660c1ff53d9535a08865aee Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Tue, 3 Sep 2024 20:22:17 -0400 Subject: [PATCH] fix precompiling packages specifically (#4014) (cherry picked from commit 8597c4ef32d96952b498a06d735d9a822fbbdd07) --- src/REPLMode/command_declarations.jl | 1 + test/new.jl | 12 +++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/REPLMode/command_declarations.jl b/src/REPLMode/command_declarations.jl index 0c38d65630..febc68e324 100644 --- a/src/REPLMode/command_declarations.jl +++ b/src/REPLMode/command_declarations.jl @@ -374,6 +374,7 @@ Create a minimal project called `pkgname` in the current folder. For more featur ], PSA[:name => "precompile", :api => API.precompile, + :should_splat => false, :arg_count => 0 => Inf, :completions => :complete_installed_packages, :description => "precompile all the project dependencies", diff --git a/test/new.jl b/test/new.jl index 260c5ff3a5..2e3634a097 100644 --- a/test/new.jl +++ b/test/new.jl @@ -2229,19 +2229,17 @@ end api, arg, opts = first(Pkg.pkg"precompile Foo") @test api == Pkg.precompile - @test arg == "Foo" + @test arg == ["Foo"] @test isempty(opts) - api, arg1, arg2, opts = first(Pkg.pkg"precompile Foo Bar") + api, arg, opts = first(Pkg.pkg"precompile Foo Bar") @test api == Pkg.precompile - @test arg1 == "Foo" - @test arg2 == "Bar" + @test arg == ["Foo", "Bar"] @test isempty(opts) - api, arg1, arg2, opts = first(Pkg.pkg"precompile Foo, Bar") + api, arg, opts = first(Pkg.pkg"precompile Foo, Bar") @test api == Pkg.precompile - @test arg1 == "Foo" - @test arg2 == "Bar" + @test arg == ["Foo", "Bar"] @test isempty(opts) end end