[bug] conan download with optional user/channel does not work
See original GitHub issueSummary
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)
- Run
conan download 'zlib/1.2.11:76f87539fc90ff313e0b3182641a9bb558a717d2'
to download a package without explicit user/channel - Expected: package is downloaded
- 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:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Submitted a possible fix, maybe for 1.20
Reproduced.
Yes, the workaround is to use the deprecated way:
I am going to check possible fixes