Skip to content

Commit 63a5bd0

Browse files
oscardssmithKeno
andauthored
Tracking non-.jl source files (#95)
Co-authored-by: Keno Fischer <[email protected]>
1 parent fd3184c commit 63a5bd0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/pkgfiles.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Note that `basedir` may be subsequently updated by Pkg operations such as `add`
1010
mutable struct PkgFiles
1111
id::PkgId
1212
basedir::String
13-
files::Vector{String}
13+
files::Vector{Any}
1414
end
1515

16-
PkgFiles(id::PkgId, path::AbstractString) = PkgFiles(id, path, String[])
16+
PkgFiles(id::PkgId, path::AbstractString) = PkgFiles(id, path, Any[])
1717
PkgFiles(id::PkgId, ::Nothing) = PkgFiles(id, "")
1818
PkgFiles(id::PkgId) = PkgFiles(id, normpath(basepath(id)))
19-
PkgFiles(id::PkgId, files::AbstractVector{<:AbstractString}) =
19+
PkgFiles(id::PkgId, files::Vector{Any}) =
2020
PkgFiles(id, normpath(basepath(id)), files)
2121

2222
# Abstraction interface

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ isdefined(Main, :Revise) ? Main.Revise.includet("script.jl") : include("script.j
7676
ioctx = IOContext(io, :compact=>true)
7777
show(ioctx, info)
7878
str = String(take!(io))
79-
@test match(r"PkgFiles\(CodeTracking, .*CodeTracking(\.jl)?, String\[\]\)", str) !== nothing
79+
@test match(r"PkgFiles\(CodeTracking, .*CodeTracking(\.jl)?, Any\[\]\)", str) !== nothing
8080

8181
@test pkgfiles("ColorTypes") === nothing
8282
@test_throws ErrorException pkgfiles("NotAPkg")

0 commit comments

Comments
 (0)