@@ -43,7 +43,7 @@ function ExplicitEnv(envpath::String=Base.active_project())
43
43
44
44
# Collect all direct dependencies of the project
45
45
for key in [" deps" , " weakdeps" , " extras" ]
46
- for (name, _uuid) in get (Dict{String, Any}, project_d, key):: Dict{String, Any}
46
+ for (name, _uuid:: String ) in get (Dict{String, Any}, project_d, key):: Dict{String, Any}
47
47
v = key == " deps" ? project_deps :
48
48
key == " weakdeps" ? project_weakdeps :
49
49
key == " extras" ? project_extras :
@@ -107,9 +107,8 @@ function ExplicitEnv(envpath::String=Base.active_project())
107
107
sizehint! (name_to_uuid, length (manifest_d))
108
108
sizehint! (lookup_strategy, length (manifest_d))
109
109
110
- for (name, pkg_infos) in get_deps (manifest_d)
111
- pkg_infos = pkg_infos:: Vector{Any}
112
- for pkg_info in pkg_infos
110
+ for (name, pkg_infos:: Vector{Any} ) in get_deps (manifest_d)
111
+ for pkg_info:: Dict{String, Any} in pkg_infos
113
112
m_uuid = UUID (pkg_info[" uuid" ]:: String )
114
113
115
114
# If we have multiple packages with the same name we will overwrite things here
@@ -141,8 +140,7 @@ function ExplicitEnv(envpath::String=Base.active_project())
141
140
142
141
# Extensions
143
142
deps_pkg = get (Dict{String, Any}, pkg_info, " extensions" ):: Dict{String, Any}
144
- for (ext, triggers) in deps_pkg
145
- triggers = triggers:: Union{String, Vector{String}}
143
+ for (ext, triggers:: Union{String, Vector{String}} ) in deps_pkg
146
144
if triggers isa String
147
145
triggers = [triggers]
148
146
end
@@ -176,7 +174,7 @@ function ExplicitEnv(envpath::String=Base.active_project())
176
174
if proj_name != = nothing && proj_uuid != = nothing
177
175
deps_expanded[proj_uuid] = filter! (!= (proj_uuid), collect (values (project_deps)))
178
176
extensions_expanded[proj_uuid] = project_extensions
179
- path = get (project_d, " path" , nothing )
177
+ path = get (project_d, " path" , nothing ):: Union{String, Nothing}
180
178
entry_point = path != = nothing ? path : dirname (envpath)
181
179
lookup_strategy[proj_uuid] = entry_point
182
180
end
0 commit comments