Skip to content

Commit 4c5cc04

Browse files
authored
remove .jl extension in Pkg.update (#23214)
* remove .jl extension in Pkg.update * add test
1 parent 143c9e2 commit 4c5cc04

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

base/pkg/pkg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ optimal set of packages versions.
225225
Without arguments, updates all installed packages. When one or more package names are provided as
226226
arguments, only those packages and their dependencies are updated.
227227
"""
228-
update(upkgs::AbstractString...) = cd(Entry.update,Dir.getmetabranch(),Set{String}([upkgs...]))
228+
update(upkgs::AbstractString...) = cd(Entry.update,Dir.getmetabranch(),Set{String}(splitjl.([upkgs...])))
229229

230230
"""
231231
resolve()

test/pkg.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ end
588588
Pkg.add("Example.jl")
589589
@test [keys(Pkg.installed())...] == ["Example"]
590590
iob = IOBuffer()
591+
Pkg.update("Example.jl")
591592
Pkg.checkout("Example.jl")
592593
Pkg.status("Example.jl", iob)
593594
str = chomp(String(take!(iob)))

0 commit comments

Comments
 (0)