Skip to content

Commit 507b84c

Browse files
authored
Warn for revision pinning with version ranges (#4280)
1 parent 1eb94e1 commit 507b84c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

reference/conanfile_txt.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ And specific recipe revisions can be pinned too:
3939
zlib/1.2.13#revision1
4040
boost/1.70.0#revision2
4141
42+
43+
.. note::
44+
45+
Note that pinning a revision when using version ranges has not effect and Conan will warn about it.
46+
47+
4248
[tool_requires]
4349
---------------
4450

tutorial/versioning/revisions.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,12 @@ So creating ``chat`` will now force the first revision:
176176
chat/1.0: Hello World Release!
177177
178178
179+
.. note::
180+
181+
Note that pinning a revision when using version ranges has not effect and Conan will warn about it.
182+
183+
184+
179185
Uploading revisions
180186
-------------------
181187

0 commit comments

Comments
 (0)