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 download with optional user/channel does not work

See original GitHub issue

Summary

Downloading Conan packages without user/channel (i.e. zlib/1.2.11 instead of zlib/1.2.11@conan/stable) does not work. Such packages are built on CCI and it will be good to be able to download them for debugging.

Environment Details (include every applicable attribute)

  • Operating System+version: macOS 10.14.6
  • Conan version: conan 1.19.3
  • Python version: 3.7.4

Steps to reproduce (Include if Applicable)

  1. Run conan download 'zlib/1.2.11:76f87539fc90ff313e0b3182641a9bb558a717d2' to download a package without explicit user/channel
  2. Expected: package is downloaded
  3. Actual: got the error ERROR: Provide a valid full reference without wildcards

Thoughts

The syntax for a short reference was given from Conan docs and from conan-center-index docs.

Anyway I tried following commands with the same error:

  • conan download 'zlib/1.2.11@_/_#76f87539fc90ff313e0b3182641a9bb558a717d2'
  • conan download 'zlib/1.2.11@/:76f87539fc90ff313e0b3182641a9bb558a717d2'

And this command with a different error “ERROR: Recipe not found: ‘zlib/1.2.11’”:

  • conan download 'zlib/1.2.11@#76f87539fc90ff313e0b3182641a9bb558a717d2'

It is curious that if Conan is run with --package argument, it suggests to use the exactly failed command:

WARN: Usage of `--package` argument is deprecated. Use a full reference instead: `conan download [...] zlib/1.2.11:76f87539fc90ff313e0b3182641a9bb558a717d2`
ERROR: Provide a valid full reference without wildcards.

The same problem with upload command was fixed recently in https://github.com/conan-io/conan/issues/5822.

I suppose the check_valid_ref method should relax the requirements for short references…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Oct 31, 2019

Submitted a possible fix, maybe for 1.20

1reaction
memshardedcommented, Oct 31, 2019

Reproduced.

Yes, the workaround is to use the deprecated way:

conan download zlib/1.2.11@ -p 76f87539fc90ff313e0b3182641a9bb558a717d2

I am going to check possible fixes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing dependencies — conan 1.53.0 documentation
In Getting started we used the conan install command to download the Poco library and build an example. If you inspect the conanbuildinfo.cmake...
Read more >
Conan does not find packages since GitLab update to 13.11.1
Steps. Considering an conan-auth-bug package exists on the channel. run conan user -c; run conan search ...
Read more >
Artifactory Release Notes - JFrog
For a list of known issues in the different versions of Artifactory, ... could not be downloaded if the 'Store Artifacts Locally' option...
Read more >
Cant create boost conan package from conan-center-index
Indeed the version is not listed in the recipe, but why? Because the same recipe is re-used for any version, so Conan Center...
Read more >
Conan Exiles Dedicated Server Launcher (Official Version
When reporting issues, please specify which version you are using. ... which will then download the game server program as well as any...
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