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