conan-io / conan-io/docs

[Question] Is it possible to remote search for a package within `requirements` method?

Open
#1,857 3 comments 0 reactions 1 assignee Claimed by @memsharded View on GitHub
type: question
Dominant language
C++
Stars
125
Forks
382
Avg merge
22h 39m
Merged PRs (30d)
21

Description

Hello,

Would it be possible to call somehow remote search for a package from the `requirements` override method?

I need a way to do the following:
- for a requires `mylib`, defined as requirements `mylib/[^0.1.0]@conan/stable`
- I need to check if it exists on a specific other user/channel (ex: `mylib/0.1.1@testing/my-test`) on the remotes or locally, if it does, take it, if it does not use the `@conan/stable`

Would it be possible easilly in my `conanfile.py`?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.