3

I need to reference spdlog 1.7.0 revision 1eebff2f51d90cb700b63c6d2449ebcb, not the latest revision, but I cannot seem to do this. Specifying revision requires the user/channel#REV syntax, but recipes on conan index doesn't seem to have user/channel.

How do I reference a specific revision from conan-index?

apanloco
  • 175
  • 1
  • 8

1 Answers1

6

You should be able to install specific revision using command:

conan install spdlog/1.7.0@#1eebff2f51d90cb700b63c6d2449ebcb

Notice the @ symbol after version.

ymochurad
  • 941
  • 7
  • 15
  • 6
    This worked after I googled myself to doing export CONAN_REVISIONS_ENABLED=1. Before that I got "Revisions not enabled in the client". Also, before exporting CONAN_REVISION_ENABLED=1, and I did conan install .. -s build_type=Debug --build missing, it silently still downloaded the latest revision. – apanloco Dec 08 '20 at 10:18
  • 2
    If you are like me, you wildly copy-paste code from the internet only to later realize that the first occurence of `CONAN_REVISIONS_ENABLED` is plural whereas the second occurrence of `CONAN_REVISION_ENABLED` is singular. The correct one is in plural. – Joakim Thorén Jan 20 '22 at 14:20
  • @JoakimThorén Oh no... Is it too late to apologize? – apanloco Feb 16 '22 at 09:17