conan-io / conan-io/docs

Cannot specify dependency with revisions and pkg id in recipe

Open
#2,436 5 comments 0 reactions 1 assignee Claimed by @lasote View on GitHub
type: question
Dominant language
C++
Stars
125
Forks
382
Avg merge
22h 39m
Merged PRs (30d)
21

Description

### Environment Details (include every applicable attribute)
* Operating System+version:
* Compiler+version:
* Conan version: 1.40
* Revisions are disabled
* Python version:

### Steps to reproduce (Include if Applicable)
Create a recipe.
Add to the requires function dependencies in this format: lib/1.0@conan/stable#RREV:PACKAGE_ID#PREV where the revision is 0 for the moment. Revisions will be enabled soon but the reference should be working also with the default revision.
Try to install deps locally by calling conan install .
Example that we were using: self.requires(f"example/1.11@ci/baselines#0:2303205ffe848694a2cd0f49e16984ec423b58bb:0")

### Logs (Executed commands with output) (Include/Attach if Applicable)
Error in requirements() method, line 18
InvalidNameException: The revision field, must contain only letters and numbers with a length between 1 and 51

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.