question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] `conan list packages` is broken

See original GitHub issue

Environment Details (include every applicable attribute)

  • Operating System+version: 21H2 (OS Build 19044.1706)
  • Compiler+version: N/A
  • Conan version: ←[1m←[32mConan version 2.0.0-alpha7←[0m
  • Python version: Python 3.9.7

Steps to reproduce (Include if Applicable)

run conan list packages zlib/1.2.11@#latest -r conanv2

Logs (Executed commands with output) (Include/Attach if Applicable)

conan list packages zlib/1.2.11@#latest -r conanv2
←[1m←[34mconanv2:←[0m
←[1m←[31m  ERROR: 500: org.jfrog.repomd.conan.exceptions.ConanInfoException: Missing section in conaninfo.txt. [Remote: conanv2]←[0m 

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:16 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
jgsogocommented, Sep 6, 2022

(conan-center-index context)

There are at least to places where we want the list of package-ids.

  • One of them is to know which packages to build. We have computed the pkg-ids (we compute them or retrieve from a cache), and we want to check which ones are already available in the remote. Here conan graph info could be a replacement, although iterating all the profiles will take longer than one single call to conan list… and this call cannot be cached, we need to query the remote for the packages that are available at that moment.
  • Another place where we need this feature is when we are going to promote the packages to ConanCenter from the temporal repository. Due to some issues we had with Artifactory in the past, we promote the recipe first and then the packages one by one. Here we need to know which packages (folders) are in the remote. Here we don’t use profiles, we just promote all packages that are available (this approach has some advantages).

IMHO, if conan list doesn’t work yet, using JFrog CLI can be the easiest alternative. It is very simple to list the directories under a given entry. The only drawback is that JFrog CLI cannot check anything (package integrity,…) it will just list folder names.

I agree that the workaround could be documented (or even implemented behind the scenes in the Conan client) while Artifactory fixes this API endpoint.

0reactions
memshardedcommented, Sep 5, 2022

in other words, do I understand correctly that conan list packages replacement could be implemented on top of conan graph info (with some loop)? if so, why not implement it in conan client (e.g. conan list-packages2)?

It is impossible to loop over all possible infinite combinations of profiles that you need to feed to conan graph info to deduce the existing package_ids.

otherwise, every user will have to figure it out, how to write that replacement on his own, which might be time consuming, and easy to make a mistake.

This will be fixed in the server. Not every user use this feature. The best would be to provide them with an Artifactory query they could run.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting — conan 1.44.1 documentation
By default, Conan doesn't build packages from sources. There are several possibilities to overcome this error:
Read more >
Why is conan broken so often on my system? - Reddit
Yeah, Conan seems to break every few months, and then it's time to update its package, read some new obscure error messages, then...
Read more >
Conan package not found on project level remote ... - GitLab
Installing Conan packages from project level remotes results in a "not found" error although a conan search and the WebUI shows that the ......
Read more >
conan error:I need to cross build packages for os:iOS with my ...
But when the first package was testing, it broke my building with that "/bin/sh: bin/test_package: Bad CPU type in executable". I know I...
Read more >
[#QTCREATORBUG-25680] QtCreator 4.15.0 breaks conan/cmake ...
Qt Creator 9 will have the package manager auto-setup feature disabled by default. Therefore, I think this bug report will be a "Cannot...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found