Skip to content

Conan API: fix search endpoint on project-level to not find instance-wide packages

What does this MR do and why?

The Conan API provides a search endpoint on instance-level and on project-level. This endpoint is used by the $ conan search command.

Problem: The current implementation is not very coherent: $ conan search on a project-level endpoint returns instance-wide packages. But those packages can't be pulled through the project-level endpoint (because they are outside of the project) - see !104589 (comment 1187802591) and #329253 (comment 1190608853).

In the course of !104589 (merged), this bug would have been fixed. But as that's a breaking change, we decided to split the search changes into this separate MR for %16.0.

Note: The review of this MR has already be done as part of !104589 (merged).

Issue: #384455 (closed)

Further information:

🛠 with at Siemens

/cc @bufferoverflow

How to set up and validate locally

see !104589 (comment 1187802591)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

💾 Database review

Edited by Jonas Wälter

Merge request reports