Skip to content

Commit 8597c4e

Browse files
fix precompiling packages specifically (#4014)
1 parent 299a356 commit 8597c4e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/REPLMode/command_declarations.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ Create a minimal project called `pkgname` in the current folder. For more featur
384384
],
385385
PSA[:name => "precompile",
386386
:api => API.precompile,
387+
:should_splat => false,
387388
:arg_count => 0 => Inf,
388389
:completions => :complete_installed_packages,
389390
:description => "precompile all the project dependencies",

test/new.jl

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,19 +2229,17 @@ end
22292229

22302230
api, arg, opts = first(Pkg.pkg"precompile Foo")
22312231
@test api == Pkg.precompile
2232-
@test arg == "Foo"
2232+
@test arg == ["Foo"]
22332233
@test isempty(opts)
22342234

2235-
api, arg1, arg2, opts = first(Pkg.pkg"precompile Foo Bar")
2235+
api, arg, opts = first(Pkg.pkg"precompile Foo Bar")
22362236
@test api == Pkg.precompile
2237-
@test arg1 == "Foo"
2238-
@test arg2 == "Bar"
2237+
@test arg == ["Foo", "Bar"]
22392238
@test isempty(opts)
22402239

2241-
api, arg1, arg2, opts = first(Pkg.pkg"precompile Foo, Bar")
2240+
api, arg, opts = first(Pkg.pkg"precompile Foo, Bar")
22422241
@test api == Pkg.precompile
2243-
@test arg1 == "Foo"
2244-
@test arg2 == "Bar"
2242+
@test arg == ["Foo", "Bar"]
22452243
@test isempty(opts)
22462244
end
22472245
end

0 commit comments

Comments
 (0)