1414
1515const vstring = " v$(VERSION . major) .$(VERSION . minor) "
1616
17- function inpath (path, dirs)
17+ function inpath (path:: AbstractString , dirs:: Vector{String} )
1818 spath = splitpath (path)
1919 idx = findfirst (isequal (first (dirs)), spath)
2020 idx === nothing && return false
@@ -29,15 +29,15 @@ function inpath(path, dirs)
2929 return true
3030end
3131
32- function _track (id, modname; modified_files= revision_queue)
32+ function _track (id:: PkgId , modname:: Symbol ; modified_files= revision_queue)
3333 haskey (pkgdatas, id) && return nothing # already tracked
3434 isbase = modname === :Base
3535 isstdlib = ! isbase && modname ∈ stdlib_names
3636 if isbase || isstdlib
3737 # Test whether we know where to find the files
3838 if isbase
3939 srcdir = fixpath (joinpath (juliadir, " base" ))
40- dirs = [" base" ]
40+ dirs = String [" base" ]
4141 else
4242 stdlibv = joinpath (" stdlib" , vstring, String (modname))
4343 srcdir = fixpath (joinpath (juliadir, stdlibv))
@@ -48,7 +48,7 @@ function _track(id, modname; modified_files=revision_queue)
4848 # This can happen for Pkg, since it's developed out-of-tree
4949 srcdir = joinpath (juliadir, " usr" , " share" , " julia" , stdlibv) # omit fixpath deliberately
5050 end
51- dirs = [" stdlib" , String (modname)]
51+ dirs = String [" stdlib" , String (modname)]
5252 end
5353 if ! isdir (srcdir)
5454 @error " unable to find path containing source for $modname , tracking is not possible"
0 commit comments