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
Before Conan 2.0, I usually use conan inspect command to check all the available options of a package. For example, running conan inspect glew/2.2.0 command:
However, I found that this command failed with Conan 2.0:
Click to expand logs
C:\Users\hwhsu1231>conan --version
Conan version 2.0.0-beta5
C:\Users\hwhsu1231>conan inspect glew/2.2.0
ERROR: Conanfile not found at C:\Users\hwhsu1231\glew\2.2.0
After searching in the repository, I found this issue and its related PR:
According to the issue and the PR, there are some changes about conan inspect command syntax. However, it still failed with the following example commands. What should I do to reproduce the usage of conan inspect command of Conan 1.0 when using Conan 2.0?
C:\Users\hwhsu1231>conan inspect --reference=glew/2.2.0 --remote=conancenter
usage: conan inspect [-h] [-f FORMAT] [-v [V]] [--logger] path
conan inspect: error: the following arguments are required: path
ERROR: Exiting with code: 2
C:\Users\hwhsu1231>conan inspect --reference=glew/2.2.0 --cache
usage: conan inspect [-h] [-f FORMAT] [-v [V]] [--logger] path
conan inspect: error: the following arguments are required: path
ERROR: Exiting with code: 2
Environments and Versions
OS+version: Windows 11
Conan version: 2.0.0-beta5
The text was updated successfully, but these errors were encountered:
hwhsu1231
changed the title
[question] 2.0 How to use "conan inspect" command to inspect the package?
[question] 2.0 Failed to use "conan inspect <pkg>/<version>" command to inspect the package?
Nov 15, 2022
hwhsu1231
changed the title
[question] 2.0 Failed to use "conan inspect <pkg>/<version>" command to inspect the package?
[question][2.0] Failed to use "conan inspect <pkg>/<version>" command to inspect the package?
Dec 3, 2022
Hi! Sorry about the radio silence. I guess you've solved this by now, but posting here for posterity: conan inspect needs a path in Conan 2 - This works well in conjunction with conan cache path to get specific folders for any reference in the current cache
Closing this as solved, feel free to reopen/create a new issue should you have any other questions or requests, thanks!
Problem Description
Before Conan 2.0, I usually use
conan inspect
command to check all the available options of a package. For example, runningconan inspect glew/2.2.0
command:Click to expand logs
However, I found that this command failed with Conan 2.0:
Click to expand logs
After searching in the repository, I found this issue and its related PR:
According to the issue and the PR, there are some changes about
conan inspect
command syntax. However, it still failed with the following example commands. What should I do to reproduce the usage ofconan inspect
command of Conan 1.0 when using Conan 2.0?Environments and Versions
The text was updated successfully, but these errors were encountered: