Skip to content

Commit

Permalink
Remove special handling of stdlibs in test_deps_compat
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Oct 17, 2023
1 parent 8b5f214 commit 543a73a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
3 changes: 1 addition & 2 deletions src/deps_compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,10 @@ function find_missing_deps_compat(
deps = get(prj, deps_type, Dict{String,Any}())
compat = get(prj, "compat", Dict{String,Any}())

stdlibs = get_stdlib_list()
missing_compat = sort!(
[
d for d in map(d -> PkgId(UUID(last(d)), first(d)), collect(deps)) if
!(d.name in keys(compat)) && !(d in stdlibs) && !(d.name in String.(ignore))
!(d.name in keys(compat)) && !(d.name in String.(ignore))
];
by = (pkg -> pkg.name),
)
Expand Down
21 changes: 0 additions & 21 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,27 +84,6 @@ function checked_repr(obj)
return code
end



function get_stdlib_list()
@static if VERSION >= v"1.4-"
result = Pkg.Types.stdlibs()
elseif VERSION >= v"1.1-"
result = Pkg.Types.stdlib()
else
result = Pkg.Types.gather_stdlib_uuids()
end

@static if VERSION >= v"1.8-"
# format: Dict{Base.UUID, Tuple{String, Union{Nothing, VersionNumber}}}
libs = [PkgId(first(entry), first(last(entry))) for entry in result]
else
# format Dict{Base.UUID, String}
libs = [PkgId(first(entry), last(entry)) for entry in result]
end
return libs
end

const _project_key_order = [
"name",
"uuid",
Expand Down

0 comments on commit 543a73a

Please sign in to comment.