Skip to content

Crate marked as yanked when both yanked and unyanked in one index-update #2295

Closed
@Nemo157

Description

@Nemo157

It appears we process the yank and unyank events in the wrong order when they come together in one update:

2023-10-30T01:43:24.525568Z DEBUG docs_rs::build_queue: queueing changes from 0e09b092780cfd28f4d9557f7e06e9fbc1c248c7 to 3f9de8e33bc8be081b6a480a75464b908b439bfc
2023-10-30T01:43:24.531502Z DEBUG docs_rs::build_queue: dylink-0.8.0 unyanked
2023-10-30T01:43:24.536981Z DEBUG docs_rs::build_queue: dylink-0.8.0 yanked

We're explicitly reversing the changes:

docs.rs/src/build_queue.rs

Lines 293 to 294 in 4514194

// I believe this will fix ordering of queue if we get more than one crate from changes
changes.reverse();

Maybe this order was changed in a crates-index-diff update?

Metadata

Metadata

Assignees

Labels

A-backendArea: Webserver backendC-bugCategory: This is a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions