From 57b7dfbe67d7fc1dbe9f3050a62950dc0f922eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abril=20Rinc=C3=B3n=20Blanco?= Date: Wed, 22 Oct 2025 12:42:58 +0200 Subject: [PATCH] Warn for revision pinning with version ranges --- reference/conanfile_txt.rst | 6 ++++++ tutorial/versioning/revisions.rst | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/reference/conanfile_txt.rst b/reference/conanfile_txt.rst index 2e8697a482fe..f5d908188d0d 100644 --- a/reference/conanfile_txt.rst +++ b/reference/conanfile_txt.rst @@ -39,6 +39,12 @@ And specific recipe revisions can be pinned too: zlib/1.2.13#revision1 boost/1.70.0#revision2 + +.. note:: + + Note that pinning a revision when using version ranges has not effect and Conan will warn about it. + + [tool_requires] --------------- diff --git a/tutorial/versioning/revisions.rst b/tutorial/versioning/revisions.rst index 8834943fe066..f81976915f2e 100644 --- a/tutorial/versioning/revisions.rst +++ b/tutorial/versioning/revisions.rst @@ -176,6 +176,12 @@ So creating ``chat`` will now force the first revision: chat/1.0: Hello World Release! +.. note:: + + Note that pinning a revision when using version ranges has not effect and Conan will warn about it. + + + Uploading revisions -------------------