diff --git a/src/Resolve/Resolve.jl b/src/Resolve/Resolve.jl index 980454ddba..01f08e80e2 100644 --- a/src/Resolve/Resolve.jl +++ b/src/Resolve/Resolve.jl @@ -4,6 +4,7 @@ module Resolve using ..Versions import ..stdout_f, ..stderr_f +using ..Registry: registry_info, isyanked using Printf using Random diff --git a/src/Resolve/graphtype.jl b/src/Resolve/graphtype.jl index dd266305e0..5ef841dc2a 100644 --- a/src/Resolve/graphtype.jl +++ b/src/Resolve/graphtype.jl @@ -617,12 +617,14 @@ function init_log!(data::GraphData) rlog = data.rlog for p0 = 1:np p = pkgs[p0] + reginfo = registry_info(p) # TODO: p::UUID - need to convert to PkgEntry id = pkgID(p0, data) versions = pvers[p0] if isempty(versions) msg = "$(logstr(id)) has no known versions!" # This shouldn't happen? else - vspec = range_compressed_versionspec(versions) + not_yanked_versions = [ver.v for ver in versions if !isyanked(reginfo, ver)] + vspec = range_compressed_versionspec(versions, not_yanked_versions) vers = logstr(id, vspec) uuid = data.pkgs[p0] name = data.uuid_to_name[uuid]