Skip to content

Commit 8b79a49

Browse files
authored
Extract stdlib names from tuple on Julia master (#61)
1 parent 8060d8e commit 8b79a49

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/deps_compat.jl

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ function _analyze_deps_compat_1(pkg::PkgId)
2424
return _analyze_deps_compat_2(pkg, root_project_path, TOML.parsefile(root_project_path))
2525
end
2626

27+
# For supporting Julia 1.8-DEV and above which give us a tuple instead of a string
28+
_unwrap_name(x::Tuple) = first(x)
29+
_unwrap_name(x::String) = x
30+
_unwrap_name(x::Nothing) = x
2731
function _analyze_deps_compat_2(pkg::PkgId, root_project_path, prj)
2832
label = "$pkg"
2933

@@ -39,7 +43,7 @@ function _analyze_deps_compat_2(pkg::PkgId, root_project_path, prj)
3943
stdlib_name_from_uuid = stdlibs()
4044
stdlib_deps = filter!(
4145
!isnothing,
42-
[get(stdlib_name_from_uuid, UUID(uuid), nothing) for (_, uuid) in deps],
46+
[_unwrap_name(get(stdlib_name_from_uuid, UUID(uuid), nothing)) for (_, uuid) in deps],
4347
)
4448
missing_compat = setdiff(setdiff(keys(deps), keys(compat)), stdlib_deps)
4549
if !isempty(missing_compat)

0 commit comments

Comments
 (0)