Skip to content

Commit

Permalink
Merge pull request #2143 from memsharded/feature/allow_explicit_revis…
Browse files Browse the repository at this point in the history
…ion_update

allow explicit revision update
  • Loading branch information
czoido committed Jun 30, 2021
2 parents 0c8a1c1 + f343df4 commit e9f4aca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions versioning/revisions.rst
Expand Up @@ -40,6 +40,12 @@ with ``-u, --update`` argument to :command:`conan install` command. In the clien
The revisions can be pinned when you write a reference (in the recipe requires, a reference in a
:command:`conan install` command,…) but if you don’t specify a revision, the server will retrieve the latest revision.

If you specify a pinned revision in your references, and that revision is not the one present in the Conan cache, and ``--update``
is not provided, it will fail with an error. This behavior can be change with ``core:allow_explicit_revision_update=True``
``[conf]`` configuration. It is experimental and can result in later errors (that won't be possible to fix, use it at your own risk),
for example as the cache can only host 1 revision, it might happen that multiple pinned references are competing for it, and kicking
each others revisions out of the cache while the dependency graph is computed.

You can specify the references in the following formats:

+-----------------------------------------------+--------------------------------------------------------------------+
Expand Down

0 comments on commit e9f4aca

Please sign in to comment.