Conan: Case insensitive search seems broken

Created on 5 Jul 2017  路  10Comments  路  Source: conan-io/conan

(fresh install from AUR package)

$ conan --version
Conan version 0.24.0
$ conan search openssl -r=conan-center
There are no packages matching the openssl pattern
$ conan search OpenSSL -r=conan-center
Existing package recipes:

OpenSSL/1.0.2l@conan/stable
$ conan search openssl --case-sensitive -r=conan-center
There are no packages matching the openssl pattern
$ conan search OpenSSL --case-sensitive -r=conan-center
Existing package recipes:

OpenSSL/1.0.2l@conan/stable
artifactory bintray triaging feature

Most helpful comment

I have the same problem. Wanted to search for openssl, but only OpenSSL exists. At the same time, I also wanted to search for HarfBuzz, but only harfbuzz exists.

What is the point/rationale of using case sensitive search by default? What is the benefit over case insensitive search?

All 10 comments

I am not sure... I think the case-sensitive option only applies to storage that is case-insensitive, like your local Windows conan cache. For other storages, that are case sensitive, as conan-center, this option is irrelevant.

Hmm, OK! FWIW it's a bit confusing as a new user.

Yes, you are right, it should be more clearly stated in the docs, or at least in the command --help.

Maybe, we need to revisit this concept, not fully sure about its real utility. In either case, I am leaving this open to be improved, (either docs or some change in the UI) in next 0.26

This is getting some command line help in #1874, but we will try to move to case-insensitive search by default in all remotes. This will take some time, so we cannot schedule this for a conan release.

I would also be interested in this feature. Right now a user has to know beforehand how a given package is spelled case-sensitivity-wise in order to find it, try a bunch of combinations before giving up or use some website with index of packages.

Any progress on this? It would really help usability, as this is currently confusing:

$ conan search openssl
Existing package recipes:

OpenSSL/1.0.2l@conan/stable
OpenSSL/1.0.2p@conan/stable
 conan search openssl -r=all
There are no packages matching the 'openssl' pattern

I have the same problem. Wanted to search for openssl, but only OpenSSL exists. At the same time, I also wanted to search for HarfBuzz, but only harfbuzz exists.

What is the point/rationale of using case sensitive search by default? What is the benefit over case insensitive search?

Case-sensitive search doesn't make sense at all. On the other hand, fuzzy search makes a lot of sense.

The command line search should give something similar to the results from the web ui (fuzzy search sorted on relevance):

image

The bintray search results are totally broken right now, as it is showing the results matching the search terms and all the other packages later, so not a good example.

Was this page helpful?
0 / 5 - 0 ratings