You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm trying to retrieve all requirements of a recipe using the python GraphAPI in an offline environment, meaning that I have all remotes disabled.
Now for example, take gsoap/2.8.134, which requires:
openssl (requires)
zlib (requires)
winflexbison (tool_requires)
The problem is that this command does not include winflexbison, because it always tries to retrieve that dependency through a remote, but that is not what I want. Instead I would like to get the graph of all the dependencies while not having to connect to an remote, because if I do allow connections to the conancenter remote, the tool_requirement(winflexbison) is automatically resolved and downloaded to the conan cache.
Is there a way to still get the dependency graph without having to have a remote enabled ?
The problem is that this command does not include winflexbison, because it always tries to retrieve that dependency through a remote, but that is not what I want. Instead I would like to get the graph of all the dependencies while not having to connect to an remote, because if I do allow connections to the conancenter remote, the tool_requirement(winflexbison) is automatically resolved and downloaded to the conan cache.
yes, by default Conan resolves the full dependency graph, including tool_requires and test_requires for "recipes", not binaries. That means, that it download only the recipes, to guarantee things are at least reproducible, and that is very fast because recipes are small. Then it will avoid downloading the heavy binaries if not really necessary to build from source.
So the recommended way would be to have the tool_requires recipes including flexbison for example, local, in the same way you already have the other recipes like zlib or openssl downloaded locally (otherwise it would fail to work, because you don't have remotes).
There is also the possibility, for some cases, to fully skip the resolution of tool_requires and test_requires, using the configuration tools.graph:skip_build and tools.graph:skip_test. Note that if there are some recipe that really needs the tool_requires, it will raise an exception, but if not, this might be what you are looking for.
What is your question?
Hi! I'm trying to retrieve all requirements of a recipe using the python GraphAPI in an offline environment, meaning that I have all remotes disabled.
Now for example, take
gsoap/2.8.134
, which requires:The problem is that this command does not include winflexbison, because it always tries to retrieve that dependency through a remote, but that is not what I want. Instead I would like to get the graph of all the dependencies while not having to connect to an remote, because if I do allow connections to the conancenter remote, the tool_requirement(winflexbison) is automatically resolved and downloaded to the conan cache.
Is there a way to still get the dependency graph without having to have a remote enabled ?
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: