Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

account for yanking in resolver error #3843

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Resolve/Resolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Resolve

using ..Versions
import ..stdout_f, ..stderr_f
using ..Registry: registry_info, isyanked

using Printf
using Random
Expand Down
4 changes: 3 additions & 1 deletion src/Resolve/graphtype.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Loading