Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature][2.x] conan cache path doesn't allow querying the package folder #14198

Closed
1 task done
fschoenm opened this issue Jun 30, 2023 · 4 comments · Fixed by #14199
Closed
1 task done

[feature][2.x] conan cache path doesn't allow querying the package folder #14198

fschoenm opened this issue Jun 30, 2023 · 4 comments · Fixed by #14199
Assignees
Milestone

Comments

@fschoenm
Copy link

What is your suggestion?

conan cache path only allows querying the export_source, source, build, and metadata folders. It seems that the package folder, containing the final binaries, cannot be queried? Is that an oversight?

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@czoido czoido self-assigned this Jun 30, 2023
@czoido
Copy link
Contributor

czoido commented Jun 30, 2023

Hi @fschoenm,

If you provide the reference with the package_id or the package_id + package_revision the package folder should be shown by default. Like this, for example:

# outputs the package folder for the latest package revision:
$ conan cache path zlib/1.2.13#e377bee636333ae348d51ca90874e353
/<path_to_local_cache>/.conan2/p/b/zlib27fc03271dsd3/p

# outputs the package folder for the specific package revision:
$ conan cache path zlib/1.2.13#e377bee636333ae348d51ca90874e353:6fe7fa69f760aee504e0be85c12b2327c716f9e7#90be0436f7d56b2561466a5914ecd2f1
/<path_to_local_cache>/.conan2/p/b/zlib27d3dds71f7ab/p

Hope this helps.

@fschoenm
Copy link
Author

Thanks for the hint @czoido, I guess in that case the documentation is just wrong:

--folder {export_source,source,build,metadata}
                      Path to show. The 'build' requires a package reference. If not specified it shows 'exports' path

@czoido
Copy link
Contributor

czoido commented Jun 30, 2023

We'll add some clarification there. Thanks for reporting @fschoenm

@fschoenm
Copy link
Author

@czoido Maybe it would also be useful to allow export and package options in the --folder argument. IMO it's confusing (and very uncommon compared to other CLI tools) to have different behavior when not specifying such an argument instead of having defaults.

AbrilRBS added a commit that referenced this issue Jul 2, 2023
…14199)

Changelog: Fix: Add clarification for the default folder shown when
querying a package reference.
Docs: TODO

Closes: #14198
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants