Skip to content

Commit

Permalink
Make print_sorted_stdlibs robust to stray files (JuliaLang#46697)
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner authored Oct 10, 2022
1 parent 729cdb4 commit ea99174
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/print_sorted_stdlibs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ end

project_deps = Dict{String,Set{String}}()
for project_dir in readdir(STDLIB_DIR, join=true)
files = readdir(project_dir)
if "Project.toml" in files
project = TOML.parsefile(joinpath(project_dir, "Project.toml"))
project_file = joinpath(project_dir, "Project.toml")
if isfile(project_file)
project = TOML.parsefile(project_file)

if !haskey(project, "name")
continue
Expand Down

0 comments on commit ea99174

Please sign in to comment.